Fix regression causing "nosuchcommand || hello" to short-circuit

Commit 3534c07584 (Adopt the new AST in parse_execution, 2020-07-03)
added to parse_execution_context_t::run_job_conjunction an early
return when any job in a job conjunction fails to launch.  This causes
"nosuchcommand || echo hello" to not execute the continuation.

Fix this by restoring the previous behavior.

Fixes #12654
This commit is contained in:
Johannes Altmanninger
2026-04-28 23:55:04 +08:00
parent e2b18fc5b6
commit 1034945690
3 changed files with 8 additions and 3 deletions

View File

@@ -138,3 +138,10 @@ not --help >/dev/null
echo $status
# CHECK: 0
# CHECK: 0
PATH= cat || echo cat failed
# CHECKERR: fish: Unknown command: cat
# CHECKERR: {{.*}}/andandoror.fish (line 142):
# CHECKERR: PATH= cat || echo cat failed
# CHECKERR: ^~^
# CHECK: cat failed