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

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
pull/9/head
Denys Vlasenko 2018-04-10 01:23:19 +02:00
parent 57b7efb0d5
commit e93031e6dc
1 changed files with 2 additions and 0 deletions

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