Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[bug] () { echo $#} $'' is zero
- X-seq: zsh-users 21344
 
- From: Ryan Wilson <ryan@xxxxxxxxxx>
 
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
 
- Subject: [bug] () { echo $#} $'' is zero
 
- Date: Thu, 03 Mar 2016 15:16:34 -0600
 
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;   s=zoho; d=enosys.org;   h=date:from:to:message-id:subject:mime-version:content-type:user-agent;   b=Cy1Dro5hJO13L/yPfVkJ82UJQBT7RusDDX/5iKXxcZqzYNG9pDic6oZBvf7Xq8SgYlhhPx3rT2c9    mJL9OAfj4erJfMqfbe5odCHCA7G7HkGzuz7UvrCbcpEPBWcUQfchUYYQOSUW4bGxGl6u4mrDoMnl    YDJoPWnzA5DWjEvy3oA=  
 
- List-help: <mailto:zsh-users-help@zsh.org>
 
- List-id: Zsh Users List <zsh-users.zsh.org>
 
- List-post: <mailto:zsh-users@zsh.org>
 
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
 
Subject says it all. The empty string $'' is not passed to commands the same
way the empty strings "" and '' are:
    $ count () { echo $#; }
    $ count ""    # okay
    1
    $ count ''    # sure
    1
    $ count $''   # huh?
    0
Any clue as to what's going on?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author