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

zsh3.0.0 bug: aliases in if-statement



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