nushell/src
Ian Manske 03ee54a4df
Fix try not working with let, etc. (#13885)
# Description
Partialy addresses #13868. `try` does not catch non-zero exit code
errors from the last command in a pipeline if the result is assigned to
a variable using `let` (or `mut`).

This was fixed by adding a new `OutDest::Value` case. This is used when
the pipeline is in a "value" position. I.e., it will be collected into a
value. This ended up replacing most of the usages of `OutDest::Capture`.
So, this PR also renames `OutDest::Capture` to `OutDest::PipeSeparate`
to better fit the few remaining use cases for it.

# User-Facing Changes
Bug fix.

# Tests + Formatting
Added two tests.
2024-09-23 06:44:25 -05:00
..
command.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
config_files.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
ide.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
logger.rs Add options for filtering the log output from nu (#13044) 2024-06-05 16:42:55 +08:00
main.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
run.rs Make IR the default evaluator (#13718) 2024-09-15 14:54:38 -07:00
signals.rs fix: relay Signals reset to plugins (#13510) 2024-08-06 03:35:40 -07:00
terminal.rs Deduplicate nix dependency versions (#12307) 2024-03-27 16:43:37 +01:00
test_bins.rs Fix try not working with let, etc. (#13885) 2024-09-23 06:44:25 -05:00

Nushell REPL

This directory contains the main Nushell REPL (read eval print loop) as part of the CLI portion of Nushell, which creates the nu binary itself.

Current versions of the nu binary will use the Nu argument parsing logic to parse the commandline arguments passed to nu, leaving the logic here to be a thin layer around what the core libraries.