Subject: Re: Empty $''
From: Peter Stephenson <[email-masked]>
To: [email-masked]
Date: Fri, 04 Mar 2016 10:35:02 +0000
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Thu, 03 Mar 2016 15:36:47 -0800
Bart Schaefer <[email-masked]> 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