Skip to content

fix dc-glob issue with using relative paths vs absolute - #18378

Merged
fdncred merged 3 commits into
nushell:mainfrom
fdncred:fix_dcglob_bug_with_relative_paths
Jun 10, 2026
Merged

fdncred merged 3 commits into
nushell:mainfrom
fdncred:fix_dcglob_bug_with_relative_paths

Conversation

@fdncred

@fdncred fdncred commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes another bug reported by @Tyarel8 in Discord where dc-glob was emitting relative path candidates for absolute patterns.

User-facing changes (Release notes)

glob with dc-glob = true now emits absolute paths when absolute patterns are used. The simple example was doing glob ~/.cargo/bin/nu* from within ~/Downloads and making sure the results start with /Users/<username>/.cargo/bin/nu. Previously they incorrectly started with /Users/<username>/Downloads/nu* which was completely wrong. Thanks @Tyarel8 !

Additional notes

@fdncred fdncred added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Jun 9, 2026
@fdncred
fdncred merged commit aa89ea0 into nushell:main Jun 10, 2026
17 checks passed
@fdncred
fdncred deleted the fix_dcglob_bug_with_relative_paths branch June 10, 2026 00:38
@github-actions github-actions Bot added this to the v0.114.0 milestone Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant