diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-29 14:35:58 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-29 14:35:58 +0200 |
| commit | 9fed83a7ccd589889bc08852584d5b4663fef2e0 (patch) | |
| tree | bc595fc243ee8ddc442517270e2a157a89b9df65 | |
| parent | 6016181b68a9e8a9fb99893242851128b6bd5656 (diff) | |
| download | busybox-w32-9fed83a7ccd589889bc08852584d5b4663fef2e0.tar.gz busybox-w32-9fed83a7ccd589889bc08852584d5b4663fef2e0.tar.bz2 busybox-w32-9fed83a7ccd589889bc08852584d5b4663fef2e0.zip | |
hush: fix false positive in unset.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rwxr-xr-x | shell/hush_test/hush-vars/unset.tests | 6 |
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 81243fbf9..268323a6d 100755 --- a/shell/hush_test/hush-vars/unset.tests +++ b/shell/hush_test/hush-vars/unset.tests | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | ( | ||
| 2 | |||
| 1 | # check invalid options are rejected | 3 | # check invalid options are rejected |
| 2 | # bash: in posix mode, aborts if non-interactive | 4 | # bash: in posix mode, aborts if non-interactive |
| 3 | unset - | 5 | unset - |
| @@ -37,3 +39,7 @@ unset VAR_RO | |||
| 37 | echo $? $f $g | 39 | echo $? $f $g |
| 38 | unset f VAR_RO g | 40 | unset f VAR_RO g |
| 39 | echo $? $f $g | 41 | echo $? $f $g |
| 42 | |||
| 43 | ) 2>&1 \ | ||
| 44 | | sed -e 's/ unrecognized option: / invalid option -- /' \ | ||
| 45 | -e 's/ illegal option -- / invalid option -- /' \ | ||
