From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Empty $''
Date: Thu, 3 Mar 2016 15:36:47 -0800 [thread overview]
Message-ID: <160303153647.ZM31964@torch.brasslantern.com> (raw)
In-Reply-To: <160303153436.ZM31948@torch.brasslantern.com>
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?
diff --git a/Src/subst.c b/Src/subst.c
index bb1dd89..efb62b8 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -146,7 +146,7 @@ stringsubstquote(char *strstart, char **pstrdpos)
} else if (strdpos[len])
strret = dyncat(strsub, strdpos + len);
else
- strret = strsub;
+ strret = dyncat(strsub, nulstring);
*pstrdpos = strret + (strdpos - strstart) + strlen(strsub);
next parent reply other threads:[~2016-03-03 23:36 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 [this message]
2016-03-04 10:35 ` Peter Stephenson
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=160303153647.ZM31964@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).