bash-2.x

Matthias Morche Matthias.Morche@sat1.de
Thu Jul 23 15:30:00 GMT 1998


Han-Wen Nienhuys wrote:
> 
> jan@digicash.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@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list