[LUGOS-PROG] Bash si sladak
Rok Papež
rok.papez at kiss.uni-lj.si
Tue Mar 19 09:38:54 CET 2002
On Tuesday 19 March 2002 09:07, Miha Tomšič wrote:
> Je ?e kdo preveril na kak?ni drugi ma?ini? ?elel bi zbrati ?im ve?
> rezultatov, da lahko po?ljem ?im popolnej?i bugreport.
RedHat 7.1
-----------
[rok at strader rok]$ bash --version
GNU bash, version 2.04.21(1)-release (i386-redhat-linux-gnu)
Copyright 1999 Free Software Foundation, Inc.
[rok at strader rok]$ for ((i = 0; i < 5; i++)); do echo "$RANDOM "; done
17329
28822
21527
4
27117
[rok at strader rok]$ for ((i = 0; i < 5; i++)); do echo "$RANDOM "; done | cat
25534
28603
8308
15673
794
[rok at strader rok]$
RedHat 6.2
----------
[rok]$ bash -version
GNU bash, version 1.14.7(1)
[rok]$ for ((i = 0; i < 5; i++)); do echo "$RANDOM "; done
bash: syntax error near unexpected token `(('
[rok]$ for i in 1 2 3 4 5; do echo $RANDOM; done
23578
5306
26904
939
30830
[rok]$ for i in 1 2 3 4 5; do echo $RANDOM; done | cat
24578
26920
2281
17178
13043
--
best regards,
Rok Papež.
More information about the lugos-prog
mailing list