nushell/crates/nu-cmd-lang/src
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
..
core_commands Make exit code available in catch block (#12648) 2024-04-26 16:35:08 +00:00
default_context.rs Overhaul the plugin cache file with a new msgpack+brotli format (#12579) 2024-04-21 07:36:26 -05:00
example_support.rs Remove the Value::Block case (#12582) 2024-04-21 07:03:33 +02:00
example_test.rs remove def-env and export def-env (#10999) 2023-11-19 23:25:09 +08:00
lib.rs cratification: Example support (#8231) 2023-02-27 13:58:56 -08:00