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

function declaration syntax



Did anybody notice that according to the manual (and the reference card,
which was how I noticed) this was supposed to work?

% fn() print foo
# Looks like it worked...
% which fn
fn() {
       print foo
}
# but it doesn't.
% fn
% 

Either we should fix it or remove it.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



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