Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh3.0.0 bug: aliases in if-statement
- X-seq: zsh-workers 2184
- From: Huy Le <huyle@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: zsh3.0.0 bug: aliases in if-statement
- Date: Tue, 01 Oct 1996 16:51:26 -0700
HP-UX, IRIX, SunOS, ...
unalias a b 2>/dev/null
alias a=cat
if true; then
alias b=cat
works() { echo yes | a }
fails() { echo yes | b }
fi
works2() { echo yes | b }
(Kinda reminiscent of csh for some reason.)
The same applies if you replace the if-statement with a case-statement.
-Huy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author