[git commit] hush: fix false positive in unset.tests
Denys Vlasenko
vda.linux at googlemail.com
Tue Aug 29 12:35:58 UTC 2017
commit: https://git.busybox.net/busybox/commit/?id=9fed83a7ccd589889bc08852584d5b4663fef2e0
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/hush_test/hush-vars/unset.tests | 6 ++++++
1 file changed, 6 insertions(+)
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 -- /' \
More information about the busybox-cvs
mailing list