Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Confused about parameters again
- X-seq: zsh-users 12208
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Nikolai Weibull" <now@xxxxxxxx>
- Subject: Re: Confused about parameters again
- Date: Thu, 15 Nov 2007 14:07:27 +0000
- Cc: "ZSH Users" <zsh-users@xxxxxxxxxx>
- In-reply-to: <dbfc82860711150559s2e39a440r9c7968a3ddee8a8b@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860711150559s2e39a440r9c7968a3ddee8a8b@xxxxxxxxxxxxxx>
"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