bash for loop errorr
Hello, I am having GNU bash, version 2.03.0(1)-release (sparc-sun-solaris2.6), while executing for loop # for (( i=1; i5 ; i++ )) ; do echo $i ; done I am getting error bash: syntax error near unexpected token `((' The same for loop is working file on GNU bash, version 3.00.15(1)-release (i386-redhat-linux-gnu) Thanks in advance Vikas Dube -- View this message in context: http://www.nabble.com/bash-for-loop-errorr-tf3803071.html#a10760917 Sent from the Gnu - Bash mailing list archive at Nabble.com. ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: bash for loop errorr
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Vikas Dube on 5/23/2007 4:02 AM: Hello, I am having GNU bash, version 2.03.0(1)-release (sparc-sun-solaris2.6), The same for loop is working file on GNU bash, version 3.00.15(1)-release Consider upgrading. Bash is now at 3.2, and has several new features and bug fixes above what 2.03 or even 3.0 had. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVERn84KuGfSFAYARAltIAJ9rDbFOVBxlhbwfNxzMCw55thU1iQCeImHw eKwjx0x/2D8FFkgR5S+p1aI= =oAsf -END PGP SIGNATURE- ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: bash for loop errorr
Vikas Dube wrote: Hello, I am having GNU bash, version 2.03.0(1)-release (sparc-sun-solaris2.6), while executing for loop # for (( i=1; i5 ; i++ )) ; do echo $i ; done I am getting error bash: syntax error near unexpected token `((' That construct was not added to bash until version 2.04. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/ ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash