Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #12391: mkdir uses process startup directory instead of current script directory #12394

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix the tests to actually cause the bug
  • Loading branch information
devyn committed Apr 4, 2024
commit 8fbccfedf637772fc0b371f085eb737e6d142781
2 changes: 1 addition & 1 deletion crates/nu-command/tests/commands/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ fn respects_cwd() {
Playground::setup("touch_respects_cwd", |dirs, _sandbox| {
nu!(
cwd: dirs.test(),
"mkdir dir; cd dir; touch i_will_be_created.txt"
"mkdir 'dir'; cd 'dir'; touch 'i_will_be_created.txt'"
);

let path = dirs.test().join("dir/i_will_be_created.txt");
Expand Down
2 changes: 1 addition & 1 deletion crates/nu-command/tests/commands/umkdir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn respects_cwd() {
Playground::setup("mkdir_respects_cwd", |dirs, _| {
nu!(
cwd: dirs.test(),
"mkdir some_folder; cd some_folder; mkdir another/deeper_one"
"mkdir 'some_folder'; cd 'some_folder'; mkdir 'another/deeper_one'"
);

let expected = dirs.test().join("some_folder/another/deeper_one");
Expand Down