mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user