summaryrefslogtreecommitdiffhomepage
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 2ad8ebacb..292b8b2e3 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -5328,9 +5328,12 @@ static int parse_stream_dquoted(o_string *as_string,
* within double quotes by preceding it with a backslash.
*/
if (strchr("$`\"\\", next) != NULL) {
- o_addqchr(dest, i_getch(input));
+ ch = i_getch(input);
+ o_addqchr(dest, ch);
+ nommu_addchr(as_string, ch);
} else {
o_addqchr(dest, '\\');
+ nommu_addchr(as_string, '\\');
}
goto again;
}