ash: if "[[" bashism is not supported, do not handle it anywhere
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 9 Apr 2018 23:23:19 +0000 (01:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 9 Apr 2018 23:23:19 +0000 (01:23 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index 30354219797623308475ddeef4a27a5eefabe244..45c747dbcd09bc1045f214e5241d59cc1397fa8c 100644 (file)
@@ -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);
                                }