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

Conversation

devyn
Copy link
Contributor

@devyn devyn commented Apr 4, 2024

Description

This fixes #12391.

87c5f6e455 accidentally introduced a bug where the path was not being properly
expanded according to the cwd. This makes both 'touch' and 'mkdir' use globs just like the rest of
the commands to preserve tilde behavior while still expanding the paths properly.

This doesn't actually expand the globs. Should it?

User-Facing Changes

  • Restore behavior of mkdir, touch
  • Help text now says they can take globs, but they won't actually expand them, maybe this should be changed

Tests + Formatting

Regression tests added.

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

After Submitting

This is severe enough and should be included in the point release.

…rrent script directory

nushell/nushell@87c5f6e455 accidentally introduced a bug where the path
was not being properly expanded according to the cwd. This makes both
'touch' and 'mkdir' use globs just like the rest of the commands to
preserve tilde behavior while still expanding the paths properly.
@sholderbach sholderbach added the pr:bugfix This PR fixes some bug label Apr 4, 2024
@fdncred
Copy link
Collaborator

fdncred commented Apr 4, 2024

This doesn't actually expand the globs. Should it?

@WindSoilder can you take a look at this since it's changing some things in your PR?

Copy link
Member

@sholderbach sholderbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tests and the lightning fast fix.

Checked that the 0.91 glob behavior is generally reflected

@sholderbach sholderbach merged commit 51aa66f into nushell:main Apr 4, 2024
15 checks passed
@devyn devyn deleted the fix-12391-mkdir-touch branch April 4, 2024 20:15
@hustcer hustcer added this to the v0.93.0 milestone Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:bugfix This PR fixes some bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mkdir uses process startup directory instead of current script directory
4 participants