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))
|
||||
}
|
||||
|
||||
/// Set up an [`Redirection`] from a [`RedirectMode`]
|
||||
/// Set up a [`Redirection`] from a [`RedirectMode`]
|
||||
fn eval_redirection(
|
||||
ctx: &mut EvalContext<'_>,
|
||||
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]
|
||||
fn external_call_redirect_file() {
|
||||
test_eval(
|
||||
|
|
Loading…
Reference in New Issue
Block a user