nushell/crates/nu-command/tests
Ian Manske 1ecbb3e09f
Make exit code available in catch block (#12648)
# Description
Bandaid fix for #12643, 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 (#12648) 2024-04-26 16:35:08 +00:00
format_conversions Msgpack commands (#12664) 2024-04-26 06:23:16 -05:00
main.rs ♻️ rework some help strings (#12306) 2024-03-27 08:41:02 -05:00