This commit is contained in:
Shreyas Goenka 2025-03-05 11:14:08 +01:00
parent 996b58a135
commit fcc2966118
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 9 additions and 1 deletions

View File

@ -6,3 +6,11 @@ hello, world
Error: starting "--help" failed: exec: "--help": executable file not found in $PATH Error: starting "--help" failed: exec: "--help": executable file not found in $PATH
Exit code: 1 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

View File

@ -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 # The CLI should not parse the --help flag and should try to run it as an executable
# instead. # instead.
trace $CLI bundle exec -- --help errcode trace $CLI bundle exec -- --help
# The error message should include the exit code. # The error message should include the exit code.
errcode trace $CLI bundle exec -- bash -c "exit 5" errcode trace $CLI bundle exec -- bash -c "exit 5"