Skip to content

Fix example multi-dot shortcut path expansion #1884

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

marcransome
Copy link
Contributor

The 'Multi-dot shortcuts' tip suggests that running ^stat .... expands to ../../../.. but this contradicts a previous example demonstrating that cd .... is used to go up three levels, not four.

Running ^stat .... | head -1 on Fedora 42 yields:

  File: ../../..

And on macOS Sequoia, ^stat -x .... | head -1 produces:

  File: "../../.."

The expanded path in the example should read: ../../.. (i.e. three levels).

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! Well spotted

@sholderbach sholderbach merged commit 83e7596 into nushell:main Apr 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants