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
[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

View File

@ -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"