← Commit list

d29084dd7

Denis Vlasenko
Denis Vlasenko
2008-10-13
FAILED Duration: 33s

Subject

testcase for the last fix

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/var_preserved.right+4 -0
@@ -0,0 +1,4 @@
+a=a
+a=a
+a=a
+OK
shell/hush_test/hush-vars/var_preserved.tests+16 -0
@@ -0,0 +1,16 @@
+export a=a
+
+# external program
+a=b /bin/true
+env | grep ^a=
+
+# builtin
+a=b true
+env | grep ^a=
+
+# exec with redirection only
+# in bash, this leaks!
+a=b exec 1>&1
+env | grep ^a=
+
+echo OK