This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bash-2.x


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]