diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-10 01:23:19 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-10 01:23:19 +0200 |
| commit | e93031e6dced47e8f5a86408b4aa3f89aef647c7 (patch) | |
| tree | 563b95ada5e51f868a85c9f4a55a696401b0209e /shell | |
| parent | 57b7efb0d5b16fe9d2c19b45fd240fe552bb5c36 (diff) | |
| download | busybox-w32-e93031e6dced47e8f5a86408b4aa3f89aef647c7.tar.gz busybox-w32-e93031e6dced47e8f5a86408b4aa3f89aef647c7.tar.bz2 busybox-w32-e93031e6dced47e8f5a86408b4aa3f89aef647c7.zip | |
ash: if "[[" bashism is not supported, do not handle it anywhere
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index 303542197..45c747dbc 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
| @@ -11611,10 +11611,12 @@ simplecmd(void) | |||
| 11611 | case TLP: | 11611 | case TLP: |
| 11612 | function_flag = 0; | 11612 | function_flag = 0; |
| 11613 | break; | 11613 | break; |
| 11614 | # if BASH_TEST2 | ||
| 11614 | case TWORD: | 11615 | case TWORD: |
| 11615 | if (strcmp("[[", wordtext) == 0) | 11616 | if (strcmp("[[", wordtext) == 0) |
| 11616 | goto do_func; | 11617 | goto do_func; |
| 11617 | /* fall through */ | 11618 | /* fall through */ |
| 11619 | # endif | ||
| 11618 | default: | 11620 | default: |
| 11619 | raise_error_unexpected_syntax(-1); | 11621 | raise_error_unexpected_syntax(-1); |
| 11620 | } | 11622 | } |
