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: case TLP:
function_flag = 0; function_flag = 0;
break; break;
# if BASH_TEST2
case TWORD: case TWORD:
if (strcmp("[[", wordtext) == 0) if (strcmp("[[", wordtext) == 0)
goto do_func; goto do_func;
/* fall through */ /* fall through */
# endif
default: default:
raise_error_unexpected_syntax(-1); raise_error_unexpected_syntax(-1);
} }