← Commit list

9fed83a7c

Denys Vlasenko
Denys Vlasenko
2017-08-29
SUCCESS Duration: 145s

Subject

hush: fix false positive in unset.tests

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush_test/hush-vars/unset.tests+6 -0
@@ -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 -- /' \