* PATCH: Re: Too much backslashing of quoted shriek?
@ 2000-02-21 8:48 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-02-21 8:48 UTC (permalink / raw)
To: zsh-workers
Peter Stephenson wrote:
> fn() {
> foo='Hi!'
> print -r ${(qq)foo}
> }
>
> % fn
> 'Hi\!'
That should be easy to fix.
Bye
Sven
diff -ru ../z.old/Src/utils.c Src/utils.c
--- ../z.old/Src/utils.c Fri Feb 18 15:42:14 2000
+++ Src/utils.c Mon Feb 21 09:46:29 2000
@@ -2858,7 +2858,7 @@
(isset(MAGICEQUALSUBST) && (u[-1] == '=' || u[-1] == ':')) ||
(*u == '~' && isset(EXTENDEDGLOB))) &&
(!instring ||
- (isset(BANGHIST) && *u == (char)bangchar) ||
+ (isset(BANGHIST) && *u == (char)bangchar && instring != 1) ||
(instring == 2 &&
(*u == '$' || *u == '`' || *u == '\"' || *u == '\\')) ||
(instring == 1 && *u == '\''))) {
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-02-21 8:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-21 8:48 PATCH: Re: Too much backslashing of quoted shriek? Sven Wischnowsky
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).