From 9fed83a7ccd589889bc08852584d5b4663fef2e0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 29 Aug 2017 14:35:58 +0200 Subject: hush: fix false positive in unset.tests Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-vars/unset.tests | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shell/hush_test/hush-vars') diff --git a/shell/hush_test/hush-vars/unset.tests b/shell/hush_test/hush-vars/unset.tests index 81243fbf9..268323a6d 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 -- /' \ -- cgit v1.2.3