Mail Archives: cygwin/1998/07/24/04:13:54
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".
- Raw text -