From: Peter Stephenson <pws@cambridgesiliconradio.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: PATCH: RC_QUOTES
Date: Wed, 24 May 2000 16:34:11 +0100 [thread overview]
Message-ID: <0FV200DGOLWYA8@la-la.cambridgesiliconradio.com> (raw)
In-Reply-To: "Your message of Tue, 23 May 2000 12:44:18 BST." <0FV000K1QGLUD7@la-la.cambridgesiliconradio.com>
I wrote:
> I've finally discovered why this doesn't work for me. First, $'...''...'
> is using RCQUOTES to interpolate a ' in the middle. I suspect this is
> wrong with $'...', since you can quote a single quote in that, but I'll
> take counsel before trying to fix it.
Nobody replied. Does anyone object to my changing it? Given the wording
of the option description, I am even more inclined to regard this as a bug,
but I've made it explicit there, too.
Index: Doc/Zsh/options.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/options.yo,v
retrieving revision 1.7
diff -u -r1.7 options.yo
--- Doc/Zsh/options.yo 2000/05/22 07:03:38 1.7
+++ Doc/Zsh/options.yo 2000/05/24 15:26:44
@@ -917,7 +917,9 @@
cindex(quoting style, rc)
item(tt(RC_QUOTES))(
Allow the character sequence `tt('')' to signify a single quote
-within singly quoted strings.
+within singly quoted strings. Note this does not apply in quoted strings
+using the format tt($')var(...)tt('), where a backslashed single quote can
+be used.
)
pindex(RCS)
cindex(startup files, sourcing)
Index: Src/lex.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/lex.c,v
retrieving revision 1.6
diff -u -r1.6 lex.c
--- Src/lex.c 2000/05/23 08:20:57 1.6
+++ Src/lex.c 2000/05/24 15:26:44
@@ -1190,7 +1190,7 @@
goto brk;
}
e = hgetc();
- if (e != '\'' || unset(RCQUOTES))
+ if (e != '\'' || unset(RCQUOTES) || strquote)
break;
add(c);
}
--
Peter Stephenson <pws@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
next prev parent reply other threads:[~2000-05-24 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-17 14:54 complete (real C) tags Peter Stephenson
2000-05-17 16:57 ` Bart Schaefer
2000-05-23 11:44 ` Peter Stephenson
2000-05-24 15:34 ` Peter Stephenson [this message]
2000-05-24 15:52 ` PATCH: RC_QUOTES Bart Schaefer
2000-05-24 16:16 ` Peter Stephenson
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=0FV200DGOLWYA8@la-la.cambridgesiliconradio.com \
--to=pws@cambridgesiliconradio.com \
--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).