diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index fc8940d..79d7a53 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -5225,6 +5225,11 @@ static struct pipe *parse_stream(char **pstring, nommu_addchr(&ctx.as_string, ch); if (ch == '\'') break; + if (ch == SPECIAL_VAR_SYMBOL) { + /* Convert raw ^C to corresponding special variable reference */ + o_addchr(&dest, SPECIAL_VAR_SYMBOL); + o_addchr(&dest, SPECIAL_VAR_QUOTED_SVS); + } o_addqchr(&dest, ch); } } |