nushell/crates/nu-command/src
Wind 928c57db41
save: print to stderr for bytestream (#13422)
# Description
Fixes: #13260 

When user run a command like this:
```nushell
$env.FOO = " New";
$env.BAZ = " New Err";
do -i {nu -n -c 'nu --testbin echo_env FOO; nu --testbin echo_env_stderr BAZ'} | save -a -r save_test_22/log.txt
```

`save` command sinks the output of previous commands' stderr output. I
think it should be `stderr`.

# User-Facing Changes
```nushell
$env.FOO = " New";
$env.BAZ = " New Err";
do -i {nu -n -c 'nu --testbin echo_env FOO; nu --testbin echo_env_stderr BAZ'} | save -a -r save_test_22/log.txt
```
The command will output ` New Err` to stderr.

# Tests + Formatting
Added 2 cases.
2024-07-31 18:19:35 +02:00
..
bytes Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
charting Add derive macros for FromValue and IntoValue to ease the use of Values in Rust code (#13031) 2024-06-17 16:05:11 -07:00
conversions Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
database don't force stripping ansi codes from strings in stor (#13464) 2024-07-30 08:52:28 -05:00
date Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
debug Fix setting metadata on byte streams (#13416) 2024-07-21 21:15:36 +00:00
env Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
experimental Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
filesystem save: print to stderr for bytestream (#13422) 2024-07-31 18:19:35 +02:00
filters reduce: supply <acc> to the closure as pipeline input as well (#13461) 2024-07-30 08:51:51 -05:00
formats Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
generators generate: switch the position of <initial> and <closure>, so the closure can have default parameters (#13393) 2024-07-19 00:22:28 -07:00
hash Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
help Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
math make math sqrt const (#13487) 2024-07-30 08:53:41 -05:00
misc Revert "Span ID Refactor (Step 2): Make Call SpanId-friendly (#13268)" (#13292) 2024-07-04 00:02:13 +03:00
network Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
path Path migration 1 (#13309) 2024-07-09 17:25:23 +08:00
platform Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
random Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
removed Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
shells Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
stor Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
strings Fix output format borken in char --list (#13417) 2024-07-21 06:30:14 -05:00
system Switch from dirs_next 2.0 to dirs 5.0 (#13384) 2024-07-16 07:16:26 -05:00
viewers Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
default_context.rs Deprecate group in favor of chunks (#13377) 2024-07-16 03:49:00 +00:00
example_test.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
progress_bar.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
sort_utils.rs Add derive macros for FromValue and IntoValue to ease the use of Values in Rust code (#13031) 2024-06-17 16:05:11 -07:00