hush: fix false positive in unset.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-08-29 14:35:58 +02:00
parent 6016181b68
commit 9fed83a7cc

View File

@ -1,3 +1,5 @@
(
# check invalid options are rejected
# bash: in posix mode, aborts if non-interactive
unset -
@ -37,3 +39,7 @@ unset VAR_RO
echo $? $f $g
unset f VAR_RO g
echo $? $f $g
) 2>&1 \
| sed -e 's/ unrecognized option: / invalid option -- /' \
-e 's/ illegal option -- / invalid option -- /' \