Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh bug: parsing error when "dir" is used as a variable name in zsh shell scripts
On Oct 26, 8:23pm, Tim Rand wrote:
}
} % for dir in *
} zsh: parse error near `-lSrah'
You must have an alias for "dir" coming from somewhere. Furthermore you
must have what's called a global alias for dir; probably it looks like
alias -g dir="ls -lSrah"
It's almost certainly the case that you don't want the "-g" in there.
Note:
torch% alias -g dir="ls -lSrah"
torch% for dir in *
zsh: parse error near `-lSrah'
torch% alias dir="ls -lSrah"
torch% for dir in *
for>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author