ash: if "[[" bashism is not supported, do not handle it anywhere

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-04-10 01:23:19 +02:00
parent 57b7efb0d5
commit e93031e6dc

View 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);
}