nushell/crates/nu-command
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
..
src make grid throw an error when not enough columns (#12672) 2024-04-26 06:33:00 -05:00
tests Make exit code available in catch block (#12648) 2024-04-26 16:35:08 +00:00
Cargo.toml Msgpack commands (#12664) 2024-04-26 06:23:16 -05:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00