Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: 4.1: multi-parameter for loop



On Jun 23, 12:49am, Zefram wrote:
> Subject: Re: PATCH: 4.1: multi-parameter for loop
> Bart Schaefer wrote:
> >               clearly a parameter named "in" can only appear in the first
> >position,
> 
> for out 'in' in a b c d; do ...

That requires even more changes to the parser ...

bash$ for 'in' in a b c d; do break; done
bash: `'in'' is not a valid identifier

zsh% for 'in' in a b c d; do break; done
zsh: parse error near `'in''

I.e. you can't use a quoted string as the NAME in `for NAME in WORD'.



Messages sorted by: Reverse Date, Date, Thread, Author