mirror of
https://github.com/nushell/nushell.git
synced 2025-08-12 13:17:36 +02:00
Add stderr back when using do -i
(#2309)
* Add stderr back when using do -i * Add stderr back when using do -i
This commit is contained in:
@ -5,7 +5,7 @@ use crate::prelude::*;
|
||||
use async_recursion::async_recursion;
|
||||
use log::trace;
|
||||
use nu_errors::{ArgumentError, ShellError};
|
||||
use nu_protocol::hir::{self, Expression, SpannedExpression};
|
||||
use nu_protocol::hir::{self, Expression, ExternalRedirection, SpannedExpression};
|
||||
use nu_protocol::{
|
||||
ColumnPath, Primitive, RangeInclusion, UnspannedPathMember, UntaggedValue, Value,
|
||||
};
|
||||
@ -194,10 +194,10 @@ async fn evaluate_invocation(
|
||||
let mut context = Context::basic()?;
|
||||
context.registry = registry.clone();
|
||||
|
||||
let input = InputStream::empty();
|
||||
let input = InputStream::one(it.clone());
|
||||
|
||||
let mut block = block.clone();
|
||||
block.set_is_last(false);
|
||||
block.set_redirect(ExternalRedirection::Stdout);
|
||||
|
||||
let result = run_block(&block, &mut context, input, it, vars, env).await?;
|
||||
|
||||
|
Reference in New Issue
Block a user