This commit is contained in:
Shreyas Goenka 2025-03-05 10:49:47 +01:00
parent 7fb464b496
commit b5e21231eb
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 5 additions and 10 deletions

View File

@ -5,13 +5,7 @@ hello, world
>>> [CLI] bundle exec -- pwd >>> [CLI] bundle exec -- pwd
[TMPDIR] [TMPDIR]
>>> [CLI] bundle exec -- echo --help >>> [CLI] bundle exec -- --help
--help Error: starting "--help" failed: exec: "--help": executable file not found in $PATH
>>> [CLI] bundle exec -- bash -c exit 5
Error: Running "bash -c exit 5" failed with exit code: 5
Exit code: 1 Exit code: 1
>>> [CLI] bundle exec -- bash -c echo hello > /dev/stderr
hello

View File

@ -2,8 +2,9 @@ trace $CLI bundle exec -- echo "hello, world"
trace $CLI bundle exec -- pwd trace $CLI bundle exec -- pwd
# The CLI should not parse the --help flag and should pass it as is to echo. # The CLI should not parse the --help flag and should try to run it as an executable
trace $CLI bundle exec -- echo --help # instead.
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"