Skip to content

Make Native globbing on UNIX return an absolute path when it is given an absolute path - #7106

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
BrucePay:brucepay_GlobbingAbsolutePaths
Aug 7, 2018
Merged

Make Native globbing on UNIX return an absolute path when it is given an absolute path #7106
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
BrucePay:brucepay_GlobbingAbsolutePaths

Conversation

@BrucePay

@BrucePay Bruce Payette (BrucePay) commented Jun 18, 2018

Copy link
Copy Markdown
Collaborator

PR Summary

Fix #7089. Native globbing on UNIX was turning absolute paths into relative paths when it shouldn't. The code suppresses generating a relative path for paths starting with '~'. It also need to do the same for paths starting with '/'.

PR Checklist

… paths into relative paths when it shouldn't
@TravisEz13 Travis Plunk (TravisEz13) changed the title Fix for #7089. Native globbing on UNIX was turning absolute paths into relative paths when it shouldn't Native globbing on UNIX was turning absolute paths into relative paths when it shouldn't Jun 19, 2018
@TravisEz13 Travis Plunk (TravisEz13) changed the title Native globbing on UNIX was turning absolute paths into relative paths when it shouldn't Make Native globbing on UNIX was return absolute path when it is given an absolute path Jun 19, 2018
@BrucePay Bruce Payette (BrucePay) changed the title Make Native globbing on UNIX was return absolute path when it is given an absolute path Make Native globbing on UNIX return an absolute path when it is given an absolute path Jun 19, 2018
@BrucePay Bruce Payette (BrucePay) changed the title Make Native globbing on UNIX return an absolute path when it is given an absolute path Fix for #7089. Make Native globbing on UNIX return an absolute path when it is given an absolute path Jun 28, 2018
@stale

stale Bot commented Jul 28, 2018

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days.
Thank you for your contributions.
Community members are welcome to grab these works.

@stale stale Bot added the Stale label Jul 28, 2018
@iSazonov Ilya (iSazonov) changed the title Fix for #7089. Make Native globbing on UNIX return an absolute path when it is given an absolute path Make Native globbing on UNIX return an absolute path when it is given an absolute path Jul 30, 2018
@stale stale Bot removed the Stale label Jul 30, 2018
@TravisEz13

Copy link
Copy Markdown
Member

Dongbo Wang (@daxian-dbw) Can you review?

@anmenaga Andrew (anmenaga) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@TravisEz13
Travis Plunk (TravisEz13) merged commit 0c11582 into PowerShell:master Aug 7, 2018
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
… an absolute path (PowerShell#7106)

Fix PowerShell#7089. Native globbing on UNIX was turning absolute paths into relative paths when it shouldn't. The code suppresses generating a relative path for paths starting with '~'. It also need to do the same for paths starting with '/'.
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.

4 participants