summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2018-04-10 01:23:19 +0200
committerDenys Vlasenko2018-04-10 01:23:19 +0200
commite93031e6dced47e8f5a86408b4aa3f89aef647c7 (patch)
tree563b95ada5e51f868a85c9f4a55a696401b0209e
parent57b7efb0d5b16fe9d2c19b45fd240fe552bb5c36 (diff)
downloadbusybox-e93031e6dced47e8f5a86408b4aa3f89aef647c7.zip
busybox-e93031e6dced47e8f5a86408b4aa3f89aef647c7.tar.gz
ash: if "[[" bashism is not supported, do not handle it anywhere
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 3035421..45c747d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11611,10 +11611,12 @@ simplecmd(void)
case TLP:
function_flag = 0;
break;
+# if BASH_TEST2
case TWORD:
if (strcmp("[[", wordtext) == 0)
goto do_func;
/* fall through */
+# endif
default:
raise_error_unexpected_syntax(-1);
}