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

zsh bug: parsing error when "dir" is used as a variable name in zsh shell scripts



bash-3.2$ for dir in *
> do
> echo $dir
> done
0

% zsh --version
zsh 5.0.2 (x86_64-apple-darwin12.5.0)

% for dir in *
zsh: parse error near `-lSrah'

I noticed this because it causes ruby version manager (rvm) uses a similar
line.

Thank you in advance for considering the issue.
Tim


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