summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2017-08-29 14:35:58 +0200
committerDenys Vlasenko2017-08-29 14:35:58 +0200
commit9fed83a7ccd589889bc08852584d5b4663fef2e0 (patch)
treebc595fc243ee8ddc442517270e2a157a89b9df65 /shell
parent6016181b68a9e8a9fb99893242851128b6bd5656 (diff)
downloadbusybox-9fed83a7ccd589889bc08852584d5b4663fef2e0.zip
busybox-9fed83a7ccd589889bc08852584d5b4663fef2e0.tar.gz
hush: fix false positive in unset.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rwxr-xr-xshell/hush_test/hush-vars/unset.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/unset.tests b/shell/hush_test/hush-vars/unset.tests
index 81243fb..268323a 100755
--- a/shell/hush_test/hush-vars/unset.tests
+++ b/shell/hush_test/hush-vars/unset.tests
@@ -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 -- /' \