Subject: Re: bash-2.x
From: [email-masked] (Matthias Morche)

24 Jul 1998 04:13:54 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Cygwin List <[email-masked]>

Han-Wen Nienhuys wrote:
> 
> [email-masked] 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
"[email-masked]" with one line of text: "help".