nushell/crates/nu-command/src
Ian Manske de08b68ba8
Fix try printing when it is not the last pipeline element (#13992)
# Description

Fixes #13991. This was done by more clearly separating the case when a
pipeline is drained vs when it is being written (to a file).

I also added an `OutDest::Print` case which might not be strictly
necessary, but is a helpful addition.

# User-Facing Changes

Bug fix.

# Tests + Formatting

Added a test.

# After Submitting

There are still a few redirection bugs that I found, but they require
larger code changes, so I'll leave them until after the release.
2024-10-12 14:37:10 +08:00
..
bytes Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
charting Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
conversions Update fill.rs to fix last example given with help (#13993) 2024-10-03 17:04:36 -05:00
database Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
date Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
debug Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
env Reduce duplication in history path construction (#13475) 2024-10-11 07:51:50 -05:00
experimental Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
filesystem since windows allows slash or backslash, allow both instead of MAIN_SEPARATOR (#13996) 2024-10-03 10:10:11 -05:00
filters Fix try printing when it is not the last pipeline element (#13992) 2024-10-12 14:37:10 +08:00
formats Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
generators Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
hash add binary as input to hash commands (#13923) 2024-09-25 16:47:52 +08:00
help allow tab to be retained with find (#13848) 2024-09-14 08:51:00 -05:00
math Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
misc Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
network Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00
path fix path exists on a non-directory file (#13763) 2024-09-11 12:45:39 -05:00
platform Respect $env.config.use_kitty_protocol in input listen (#13892) 2024-09-25 08:57:00 -05:00
random Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
removed Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
shells Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
stor Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
strings fix format date by getting the env vars properly (#14037) 2024-10-10 06:38:26 -05:00
system Fix non-zero exit code errors in middle of pipeline (#13899) 2024-10-02 06:04:18 -05:00
viewers Add ls colors to cjs and mjs files (#14028) 2024-10-08 08:55:20 -05:00
default_context.rs Remove group command (#14056) 2024-10-11 06:43:12 -05: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 Rework sorting and add cell path and closure comparators to sort-by (#13154) 2024-10-09 19:18:16 -07:00