diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-05-27 18:57:34 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-05-27 18:57:34 +0000 |
commit | 147cedfb6fa2973f6ff6ce69d63d98096b4e2604 (patch) | |
tree | e263053dbf28f5ae4bd88743fc06e4856e6ff9a9 /Src/subst.c | |
parent | 43ee0cd4fd3ea9f87fe0428d41dc4010bdd8e61d (diff) | |
download | zsh-147cedfb6fa2973f6ff6ce69d63d98096b4e2604.tar.gz zsh-147cedfb6fa2973f6ff6ce69d63d98096b4e2604.tar.xz zsh-147cedfb6fa2973f6ff6ce69d63d98096b4e2604.zip |
27965, 27966: Improve ${(q)...}: newline appears as $'\n;,
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/subst.c b/Src/subst.c index 80a56410a..304add6f9 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2896,7 +2896,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) } } else for (; *ap; ap++) - *ap = quotestring(*ap, NULL, QT_BACKSLASH); + *ap = quotestring(*ap, NULL, QT_BACKSLASH_SHOWNULL); } else { int one = noerrs, oef = errflag, haserr = 0; @@ -2933,7 +2933,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) if (quotetype == QT_DOLLARS) val[0] = '$'; } else - val = quotestring(val, NULL, QT_BACKSLASH); + val = quotestring(val, NULL, QT_BACKSLASH_SHOWNULL); } else { int one = noerrs, oef = errflag, haserr; @@ -3490,7 +3490,7 @@ modify(char **str, char **ptr) subst(©, hsubl, hsubr, gbal); break; case 'q': - copy = quotestring(copy, NULL, QT_BACKSLASH); + copy = quotestring(copy, NULL, QT_BACKSLASH_SHOWNULL); break; case 'Q': { |