From 147cedfb6fa2973f6ff6ce69d63d98096b4e2604 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 27 May 2010 18:57:34 +0000 Subject: 27965, 27966: Improve ${(q)...}: newline appears as $'\n;, --- Src/subst.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/subst.c') 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': { -- cgit 1.4.1