redirect test
This commit is contained in:
parent
e2510d6c0d
commit
89d7b2237c
|
@ -701,7 +701,7 @@ fn collect(data: PipelineData, fallback_span: Span) -> Result<PipelineData, Shel
|
||||||
Ok(PipelineData::Value(value, metadata))
|
Ok(PipelineData::Value(value, metadata))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set up an [`Redirection`] from a [`RedirectMode`]
|
/// Set up a [`Redirection`] from a [`RedirectMode`]
|
||||||
fn eval_redirection(
|
fn eval_redirection(
|
||||||
ctx: &mut EvalContext<'_>,
|
ctx: &mut EvalContext<'_>,
|
||||||
mode: &RedirectMode,
|
mode: &RedirectMode,
|
||||||
|
|
|
@ -198,6 +198,14 @@ fn external_call_redirect_pipe() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn external_call_redirect_capture() {
|
||||||
|
test_eval(
|
||||||
|
"echo (nu --testbin cococo foo=bar baz) | str upcase",
|
||||||
|
Eq("FOO=BAR BAZ"),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn external_call_redirect_file() {
|
fn external_call_redirect_file() {
|
||||||
test_eval(
|
test_eval(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user