nushell/crates/nu-command
Devyn Cairns 948b90299d
Preserve attributes on external ByteStreams (#13305)
# Description

Bug fix: `PipelineData::check_external_failed()` was not preserving the
original `type_` and `known_size` attributes of the stream passed in for
streams that come from children, so `external-command | into binary` did
not work properly and always ended up still being unknown type.

# User-Facing Changes
The following test case now works as expected:

```nushell
> head -c 2 /dev/urandom | into binary
# Expected: pretty hex dump of binary
# Previous behavior: just raw binary in the terminal
```

# Tests + Formatting
Added a test to cover this to `into binary`
2024-07-05 21:10:41 +00:00
..
src feat: replace unfold with from_fn for the generate command (#13299) 2024-07-05 07:16:21 -05:00
tests Preserve attributes on external ByteStreams (#13305) 2024-07-05 21:10:41 +00:00
Cargo.toml add str deunicode command (#13270) 2024-06-29 16:12:34 -05:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00