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:
parent
57b7efb0d5
commit
e93031e6dc
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user