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

Re: zsh3.0.0 bug: aliases in if-statement



"Bart Schaefer" wrote:
> IMHO, alias expansion has always happened too soon in zsh, but it greatly
> complicates matters to go around reshaping syntax trees at execution time.

Not just too soon, I've often thought, but too much.  I don't like the
following at all.

% which ls
ls: aliased to ls -F
% foo() { command ls }
% which foo
foo () {
        command ls -F
}

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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