nushell/crates/nu-engine/src
WindSoilder 23fec8eb0d
Fix piping output logic (#11317)
# Description
Fixes: #11295

Sorry for introducing such issue.
The issue is caused by we wrongly set `redirect_stdout` and
`redirect_stderr` during eval, take the following as example:
```nushell
ls | bat --paging always
```
When running `bat --paging always`, `redirect_stdout` should be `false`.
But before this pr, it's set to true due to `ls` command, and then the
`true` value will go to all remaining commands.

# User-Facing Changes
NaN

# Tests + Formatting
Sorry I don't think we have a way to test it. Because it needs to be
tested on interactive command like `nvim`.

# After Submitting
NaN
2023-12-13 13:16:23 -06:00
..
call_ext.rs Make FromValue take owned Values (#10900) 2023-10-31 19:47:00 +01:00
column.rs Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
documentation.rs Spread operator in record literals (#11144) 2023-11-29 18:31:31 +01:00
env.rs Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
eval.rs Fix piping output logic (#11317) 2023-12-13 13:16:23 -06:00
glob_from.rs Convert Shellerror::GenericError to named fields (#11230) 2023-12-07 00:40:03 +01:00
lib.rs Allow operator in constants (#10212) 2023-09-05 16:35:58 +02:00
scope.rs Use Record APIs in nu-protocol/nu-engine (#10917) 2023-11-01 23:19:58 +01:00