Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Empty $''
On Thu, 03 Mar 2016 15:36:47 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author