diff --git a/crates/nu-cli/tests/commands/cd.rs b/crates/nu-cli/tests/commands/cd.rs index 8d7b15bfb..d9c12bb96 100644 --- a/crates/nu-cli/tests/commands/cd.rs +++ b/crates/nu-cli/tests/commands/cd.rs @@ -24,7 +24,7 @@ fn filesystem_change_from_current_directory_using_absolute_path() { let actual = nu!( cwd: dirs.test(), r#" - cd {} + cd "{}" pwd | echo $it "#, dirs.formats() @@ -113,9 +113,9 @@ fn filesystem_change_current_directory_to_parent_directory_after_delete_cwd() { let actual = nu!( cwd: dirs.test().join("foo/bar"), r#" - rm {}/foo/bar + rm {}/foo/bar echo "," - cd .. + cd .. pwd | echo $it "#, dirs.test() diff --git a/crates/nu-cli/tests/commands/cp.rs b/crates/nu-cli/tests/commands/cp.rs index 0249d53ed..9fe1272b7 100644 --- a/crates/nu-cli/tests/commands/cp.rs +++ b/crates/nu-cli/tests/commands/cp.rs @@ -8,7 +8,7 @@ fn copies_a_file() { Playground::setup("cp_test_1", |dirs, _| { nu!( cwd: dirs.root(), - "cp {} cp_test_1/sample.ini", + "cp \"{}\" cp_test_1/sample.ini", dirs.formats().join("sample.ini") ); diff --git a/crates/nu-cli/tests/commands/save.rs b/crates/nu-cli/tests/commands/save.rs index 913e07648..7a6e42b15 100644 --- a/crates/nu-cli/tests/commands/save.rs +++ b/crates/nu-cli/tests/commands/save.rs @@ -37,7 +37,7 @@ fn writes_out_csv() { nu!( cwd: dirs.root(), - "open {}/cargo_sample.toml | get package | save save_test_2/cargo_sample.csv", + "open \"{}/cargo_sample.toml\" | get package | save save_test_2/cargo_sample.csv", dirs.formats() );