From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Empty $''
Date: Sat, 5 Mar 2016 08:35:57 -0800 [thread overview]
Message-ID: <160305083558.ZM9594@torch.brasslantern.com> (raw)
In-Reply-To: <20160304121435.0d07611f@pwslap01u.europe.root.pri>
On Mar 4, 12:14pm, Peter Stephenson wrote:
} Subject: Re: Empty $''
}
} - else
} + else if (*strsub)
} strret = strsub;
} + else {
} + /* This ensures a $'' doesn't get elided. */
} + strret = dupstring(nulstring);
} + }
This looks fine; I wasn't sure whether (*strsub) was ever nonzero in
this case but it should be harmless to append a Nulstring to another
string (happens with e.g. foo"" already I think) so I took a shortcut.
prev parent reply other threads:[~2016-03-05 16: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
2016-03-04 12:14 ` Peter Stephenson
2016-03-05 16:35 ` Bart Schaefer [this message]
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=160305083558.ZM9594@torch.brasslantern.com \
--to=schaefer@brasslantern.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).