2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-03-05 15:58:17 +00:00
nushell/crates/nu-command/tests
Ian Manske 1ecbb3e09f
Make exit code available in catch block ()
# Description
Bandaid fix for , where it is not possible to get the exit code of
a failed external command while also having the external command inherit
nushell's stdout and stderr. This changes `try` so that the exit code of
external command is available in the `catch` block via the usual
`$env.LAST_EXIT_CODE`.

# Tests + Formatting
Added one test.

# After Submitting
Rework I/O redirection and possibly exit codes.
2024-04-26 16:35:08 +00:00
..
commands Make exit code available in catch block () 2024-04-26 16:35:08 +00:00
format_conversions Msgpack commands () 2024-04-26 06:23:16 -05:00
main.rs ♻️ rework some help strings () 2024-03-27 08:41:02 -05:00