Skip to content

fix detection of whether -LiteralPath was used to suppress wildcardexpansion for navigation cmdlets - #5038

Merged
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
SteveL-MSFT:remove-item-wildcard
Oct 9, 2017
Merged

Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
SteveL-MSFT:remove-item-wildcard

Conversation

@SteveL-MSFT

Copy link
Copy Markdown
Member

Fix #5031

fix detection of whether `-LiteralPath` was used to suppress wildcardexpansion

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@adityapatwardhan

Copy link
Copy Markdown
Member

Steve Lee (@SteveL-MSFT) The test 'Remove-Item -LiteralPath should succeed for file with asterisk in name' is failing. Please fix.

@SteveL-MSFT

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) I only ran it on my Mac, I need to skip it on Windows since asterisk isn't allowed in filename

skip -literalpath test with asterisk in filename as that's not valid on Windows
@adityapatwardhan

Copy link
Copy Markdown
Member

Steve Lee (@SteveL-MSFT) Please add the test as described in the issue #5031. That should work on Windows as well.

added more variations of tests
@SteveL-MSFT

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) added more test variations for the wildcard not finding files scenario

@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit ff59be3 into PowerShell:master Oct 9, 2017
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the remove-item-wildcard branch October 9, 2017 16:40
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…expansion for navigation cmdlets (PowerShell#5038)

* [feature]
fix detection of whether `-LiteralPath` was used to suppress wildcardexpansion

* [feature]
skip -literalpath test with asterisk in filename as that's not valid on Windows

* [feature]
added more variations of tests
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