hush: fix false positive in unset.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6016181b68
commit
9fed83a7cc
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
(
|
||||||
|
|
||||||
# check invalid options are rejected
|
# check invalid options are rejected
|
||||||
# bash: in posix mode, aborts if non-interactive
|
# bash: in posix mode, aborts if non-interactive
|
||||||
unset -
|
unset -
|
||||||
|
@ -37,3 +39,7 @@ unset VAR_RO
|
||||||
echo $? $f $g
|
echo $? $f $g
|
||||||
unset f VAR_RO g
|
unset f VAR_RO g
|
||||||
echo $? $f $g
|
echo $? $f $g
|
||||||
|
|
||||||
|
) 2>&1 \
|
||||||
|
| sed -e 's/ unrecognized option: / invalid option -- /' \
|
||||||
|
-e 's/ illegal option -- / invalid option -- /' \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue