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

Re: Confused about parameters again



"Nikolai Weibull" wrote:
> However, there's apparently a difference between invoking
> 
> count-arguments () { print $# }
> 
> as
> 
> % local empty=
> % count-arguments $empty
> 
> and
> 
> % count-arguments "$empty"

Right, that's completely standard in Bourne-style shells.  See the
description in the user guide I referred two a couple of weeks ago:

http://zsh.sunsite.dk/Guide/zshguide03.html#l50

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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