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 fc8940d3d..79d7a53dd 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -5225,6 +5225,11 @@ static struct pipe *parse_stream(char **pstring, | |||
5225 | nommu_addchr(&ctx.as_string, ch); | 5225 | nommu_addchr(&ctx.as_string, ch); |
5226 | if (ch == '\'') | 5226 | if (ch == '\'') |
5227 | break; | 5227 | break; |
5228 | if (ch == SPECIAL_VAR_SYMBOL) { | ||
5229 | /* Convert raw ^C to corresponding special variable reference */ | ||
5230 | o_addchr(&dest, SPECIAL_VAR_SYMBOL); | ||
5231 | o_addchr(&dest, SPECIAL_VAR_QUOTED_SVS); | ||
5232 | } | ||
5228 | o_addqchr(&dest, ch); | 5233 | o_addqchr(&dest, ch); |
5229 | } | 5234 | } |
5230 | } | 5235 | } |