mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 13:15:58 +02:00
Fix external extra (#4777)
* Fix empty table from externals * Fix empty table from externals
This commit is contained in:
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