diff --git a/acceptance/bundle/exec/basic/output.txt b/acceptance/bundle/exec/basic/output.txt index 9283131d6..c9a651aed 100644 --- a/acceptance/bundle/exec/basic/output.txt +++ b/acceptance/bundle/exec/basic/output.txt @@ -5,13 +5,7 @@ hello, world >>> [CLI] bundle exec -- pwd [TMPDIR] ->>> [CLI] bundle exec -- echo --help ---help - ->>> [CLI] bundle exec -- bash -c exit 5 -Error: Running "bash -c exit 5" failed with exit code: 5 +>>> [CLI] bundle exec -- --help +Error: starting "--help" failed: exec: "--help": executable file not found in $PATH 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 e0e238c43..9d1a281c2 100644 --- a/acceptance/bundle/exec/basic/script +++ b/acceptance/bundle/exec/basic/script @@ -2,8 +2,9 @@ trace $CLI bundle exec -- echo "hello, world" trace $CLI bundle exec -- pwd -# The CLI should not parse the --help flag and should pass it as is to echo. -trace $CLI bundle exec -- echo --help +# The CLI should not parse the --help flag and should try to run it as an executable +# instead. +trace $CLI bundle exec -- --help # The error message should include the exit code. errcode trace $CLI bundle exec -- bash -c "exit 5"