zsh-users
 help / color / mirror / code / Atom feed
* [bug] () { echo $#} $'' is zero
@ 2016-03-03 21:16 Ryan Wilson
  2016-03-03 22:33 ` Martijn Dekker
  2016-03-03 23:34 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Ryan Wilson @ 2016-03-03 21:16 UTC (permalink / raw)
  To: zsh-users

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-04  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-03 21:16 [bug] () { echo $#} $'' is zero Ryan Wilson
2016-03-03 22:33 ` Martijn Dekker
2016-03-03 23:34 ` Bart Schaefer
2016-03-04  7:16   ` Philippe Troin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).