mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:55:47 +02:00
Fix external extra (#4777)
* Fix empty table from externals * Fix empty table from externals
This commit is contained in:
@ -47,6 +47,7 @@ mod reverse;
|
||||
mod rm;
|
||||
mod roll;
|
||||
mod rotate;
|
||||
mod run_external;
|
||||
mod save;
|
||||
mod select;
|
||||
mod semicolon;
|
||||
|
15
crates/nu-command/tests/commands/run_external.rs
Normal file
15
crates/nu-command/tests/commands/run_external.rs
Normal file
@ -0,0 +1,15 @@
|
||||
use nu_test_support::{nu, pipeline};
|
||||
|
||||
#[test]
|
||||
fn better_empty_redirection() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
ls | each { |it| nu --testbin cococo $it.name }
|
||||
"#
|
||||
));
|
||||
|
||||
eprintln!("out: {}", actual.out);
|
||||
|
||||
assert!(!actual.out.contains('2'));
|
||||
}
|
Reference in New Issue
Block a user