diff --git a/acceptance/bundle/exec/basic/output.txt b/acceptance/bundle/exec/basic/output.txt index 4c8668232..6056a8c9e 100644 --- a/acceptance/bundle/exec/basic/output.txt +++ b/acceptance/bundle/exec/basic/output.txt @@ -6,3 +6,11 @@ hello, world Error: starting "--help" failed: exec: "--help": executable file not found in $PATH Exit code: 1 + +>>> [CLI] bundle exec -- bash -c exit 5 +Error: running "bash -c exit 5" failed with exit code: 5 + +Exit code: 1 + +>>> [CLI] bundle exec -- bash -c echo hello > /dev/stderr +hello diff --git a/acceptance/bundle/exec/basic/script b/acceptance/bundle/exec/basic/script index 285023492..20b56ad1a 100644 --- a/acceptance/bundle/exec/basic/script +++ b/acceptance/bundle/exec/basic/script @@ -2,7 +2,7 @@ trace $CLI bundle exec -- echo "hello, world" # The CLI should not parse the --help flag and should try to run it as an executable # instead. -trace $CLI bundle exec -- --help +errcode trace $CLI bundle exec -- --help # The error message should include the exit code. errcode trace $CLI bundle exec -- bash -c "exit 5"