From: Matthias DOT Morche AT sat1 DOT de (Matthias Morche) Subject: Re: bash-2.x 24 Jul 1998 04:13:54 -0700 Message-ID: <35B781B8.2B74985.cygnus.gnu-win32@sat1.de> References: <199807230858 DOT KAA03131 AT digicash DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Cygwin List Han-Wen Nienhuys wrote: > > jan AT digicash DOT com writes: > > Hi, > > > > After all this trouble with bash, i downloaded bash-docs-2.02, > > and it says: > > > > for name [ in word; ] do list ; done > ^ > > > > > 10:55:25 mub ~/ftp/gnu/bash-2.02$ for i in ;do echo $i; done > > bash: syntax error near unexpected token `;d' > > > > It looks like a bug in bash-2.02(-release) > > I think that you have to take out the ; .... for i in * ; do echo $i ; done or (to process the actual parameter list) set 1 2 3 4 5 # this line just sets the parameter list - "echo $*" for i do echo $i ; done works for me all the time. Perhaps You should read some shell scripts to get the correct syntax by example. Or You post Your questions within this list, of course :-) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".