diff options
author | Denys Vlasenko | 2016-09-29 17:58:58 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-09-29 17:58:58 +0200 |
commit | 459293b1c536515fbe7fafbae9932aefadb2fbaf (patch) | |
tree | 949cfa9001df3b0bea827200565eb8f36f028939 /shell/ash.c | |
parent | 73c3e074df4de03ba1bebce09c130c8950ea5fe4 (diff) | |
download | busybox-459293b1c536515fbe7fafbae9932aefadb2fbaf.zip busybox-459293b1c536515fbe7fafbae9932aefadb2fbaf.tar.gz |
ash: fix arithmetic closing )) split by backslash-newline
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index b71fc02..97f8d93 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -11437,7 +11437,7 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs) if (parenlevel > 0) { parenlevel--; } else { - if (pgetc() == ')') { + if (pgetc_eatbnl() == ')') { c = CTLENDARI; if (--arinest == 0) { syntax = prevsyntax; @@ -11464,6 +11464,7 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs) if (varnest == 0) { #if ENABLE_ASH_BASH_COMPAT if (c == '&') { +//Can't call pgetc_eatbnl() here, this requires three-deep pungetc() if (pgetc() == '>') c = 0x100 + '>'; /* flag &> */ pungetc(); |