Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Aliasing and function
- X-seq: zsh-workers 15612
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Aliasing and function
- Date: Sun, 12 Aug 2001 20:03:07 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I mentioned this once before, on a tangentially related thread, but nobody
responded.
The FAQ section 2.3 says (and has for a long time):
Luckily, it is not possible to define `function' as an alias.
I don't know at exactly what point that statement became false, but:
zagzig% alias function=for
zagzig% set a b c
zagzig% function x { echo $x }
a
b
c
zagzig%
Either the code or the FAQ needs fixing. I lean slightly to the code.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author