zsh-users
 help / color / mirror / code / Atom feed
From: Ryan Wilson <ryan@enosys.org>
To: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: [bug] () { echo $#} $'' is zero
Date: Thu, 03 Mar 2016 15:16:34 -0600	[thread overview]
Message-ID: <1533e4d3e82.cbf3800a134118.3897690426664036468@enosys.org> (raw)

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?


             reply	other threads:[~2016-03-03 21:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-03 21:16 Ryan Wilson [this message]
2016-03-03 22:33 ` Martijn Dekker
2016-03-03 23:34 ` Bart Schaefer
2016-03-04  7:16   ` Philippe Troin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1533e4d3e82.cbf3800a134118.3897690426664036468@enosys.org \
    --to=ryan@enosys.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).