From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Quote backslash in dobulequote.
Date: 24 Sep 1999 21:36:58 +0900 [thread overview]
Message-ID: <rsqogesqydx.fsf@crane.jaist.ac.jp> (raw)
is27e1u11% print -lr ${(qqq):-'\'}
"\"
is27e1u11%
Hm. It should be "\\".
Index: Src/utils.c
===================================================================
RCS file: /projects/zsh/zsh/Src/utils.c,v
retrieving revision 1.1.1.31
diff -u -F^( -r1.1.1.31 utils.c
--- utils.c 1999/09/23 14:15:27 1.1.1.31
+++ utils.c 1999/09/24 12:34:47
@@ -2985,10 +2985,10 @@
if (e && *e == u)
*e = v, sf = 1;
if (ispecial(*u) &&
- (!instring || (isset(BANGHIST) &&
- *u == (char)bangchar) ||
+ (!instring ||
+ (isset(BANGHIST) && *u == (char)bangchar) ||
(instring == 2 &&
- (*u == '$' || *u == '`' || *u == '\"')) ||
+ (*u == '$' || *u == '`' || *u == '\"' || *u == '\\')) ||
(instring == 1 && *u == '\''))) {
if (*u == '\n' || (instring == 1 && *u == '\'')) {
if (unset(RCQUOTES)) {
--
Tanaka Akira
reply other threads:[~1999-09-24 12:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=rsqogesqydx.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--cc=zsh-workers@sunsite.auc.dk \
/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).