zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: Empty $''
Date: Fri, 04 Mar 2016 10:35:02 +0000	[thread overview]
Message-ID: <20160304103502.531f6bb9@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <160303153647.ZM31964@torch.brasslantern.com>

On Thu, 03 Mar 2016 15:36:47 -0800
Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Mar 3,  3:34pm, Bart Schaefer wrote:
> }
> } $'...' is not a quoted expression, it's a substitution (at least as far
> } as zsh is concerned).
> } 
> } This does appear to be out of step with other shells.
> 
> Comments on the below?

nulstring always confused me, but something like this appears to be
correct, so as long as this passes tests (we should presumably add
another).

Hmm... actually, isn't the usual logic for using nulstring more like

    if (!*strsub)
      strret = dupstring(nulstring);

?

pws


  reply	other threads:[~2016-03-04 10:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1533e4d3e82.cbf3800a134118.3897690426664036468@enosys.org>
     [not found] ` <160303153436.ZM31948@torch.brasslantern.com>
2016-03-03 23:36   ` Bart Schaefer
2016-03-04 10:35     ` Peter Stephenson [this message]
2016-03-04 12:14       ` Peter Stephenson
2016-03-05 16:35         ` Bart Schaefer

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=20160304103502.531f6bb9@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@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).