← Commit list

204c7fb22

Rostislav Skudnov
Rostislav Skudnov
2016-09-17
SUCCESS Duration: 257s

Subject

ash: exit after subshell error when errexit option is set

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/ash.c+2 -0
@@ -8408,6 +8408,8 @@ evaltree(union node *n, int flags)
evalfn = evalloop;
goto calleval;
case NSUBSHELL:
+ evalfn = evalsubshell;
+ goto checkexit;
case NBACKGND:
evalfn = evalsubshell;
goto calleval;
shell/ash_test/ash-misc/errexit1.right+1 -0
@@ -0,0 +1 @@
+OK
shell/ash_test/ash-misc/errexit1.tests+5 -0
@@ -0,0 +1,5 @@
+set -e
+(true)
+echo OK
+(false)
+echo FAIL