1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-24 05:08:29 +02:00
nushell/crates/nu-command
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
..
src make grid throw an error when not enough columns () 2024-04-26 06:33:00 -05:00
tests Make exit code available in catch block () 2024-04-26 16:35:08 +00:00
Cargo.toml Msgpack commands () 2024-04-26 06:23:16 -05:00
LICENSE Fix rest of license year ranges () 2023-04-04 09:03:29 +12:00