Imported from ../bash-2.05.tar.gz.
[platform/upstream/bash.git] / tests / set-e-test
index 895aff7..fe1549c 100644 (file)
@@ -14,6 +14,21 @@ if : ; then
        done
        set +e
 fi
+
+(
+set -e
+false
+echo bad
+)
+echo $?
+
+x=$(
+set -e
+false
+echo bad
+)
+echo $? $x
+
 # command subst should not inherit -e
 set -e
 echo $(false; echo ok)