bash for loop errorr

2007-05-23 Thread Vikas Dube
(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

Re: bash for loop errorr

2007-05-23 Thread Eric Blake
-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

Re: bash for loop errorr

2007-05-23 Thread Chet Ramey
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.