Skip to content

Fix example multi-dot shortcut path expansion#1884

Merged
sholderbach merged 1 commit into
nushell:mainfrom
marcransome:fix-multi-dot-expansion
Apr 22, 2025
Merged

Fix example multi-dot shortcut path expansion#1884
sholderbach merged 1 commit into
nushell:mainfrom
marcransome:fix-multi-dot-expansion

Conversation

@marcransome
Copy link
Copy Markdown
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
Copy Markdown
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