Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Confused about parameters again
- X-seq: zsh-users 12207
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "ZSH Users" <zsh-users@xxxxxxxxxx>
- Subject: Confused about parameters again
- Date: Thu, 15 Nov 2007 14:59:15 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=kFHUoys6j33Pf2uFnsmF1ZuVHxD0p6Cgqm+4x/htkeQ=; b=JIUypp5sfEka2+J7Ps6yABpkfiYJq74L5rUvU2Wrm3+ebL3PnIVcgLuJBLricTrxK+rCfmdgT4D+1+8c0h+0wG2yHDDgFDAyERwP+aEiJPhUMrxe5gomJUXdUG6H7XXap6IJuKy8/JFkKptK7NLnFNRoWipOzrrzqw9RbrMeAnk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=s5+jho+eFWsycrBPCGow96A4SRFb8Rwh2vNwc8O+/Miu8YsyqVglDaTS//FYfoU12u5J26hfkHGzW51IlAgcBknniBLyOR4PANjfVN9xK80H5GVJgbYka0lWThFtVbU8fm7/7UwBvz63RDHDhyW+jOJ/EW2WcVSCtoEd+oUg4F4=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: nikolai.weibull@xxxxxxxxx
I've always lived under the illusion that Zsh respected empty
parameters. However, there's apparently a difference between invoking
count-arguments () { print $# }
as
% local empty=
% count-arguments $empty
and
% count-arguments "$empty"
I guess not all parameters are created equal, after all...why?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author