René's URL Explorer Experiment


Title: PathUtils: handle escaped -Path correctly by kwkam · Pull Request #7405 · PowerShell/PowerShell · GitHub

Open Graph Title: PathUtils: handle escaped -Path correctly by kwkam · Pull Request #7405 · PowerShell/PowerShell

X Title: PathUtils: handle escaped -Path correctly by kwkam · Pull Request #7405 · PowerShell/PowerShell

Description: PR Summary Unescape non-literal, non-glob path before calling GetUnresolvedProviderPathFromPSPath since it only accepts literal path. This solve the issue where some commands depending on that method will treat -Path as literal unintentionally. For example, Out-File -Path './`[out`].txt' -Append will create a new file named "`[out`].txt" instead of writing to "[out].txt". PR Checklist PR has a meaningful title Use the present tense and imperative mood when describing your changes Summarized changes Change is not breaking Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header This PR is ready to merge and is not Work in Progress. If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready. User-facing changes Not Applicable OR User-facing Documentation needed Issue filed - Issue link: Testing - New and feature Not Applicable or can only be tested interactively OR Make sure you've added a new test if existing tests do not effectively test the code changed Add [feature] if the change is significant or affects feature tests

Open Graph Description: PR Summary Unescape non-literal, non-glob path before calling GetUnresolvedProviderPathFromPSPath since it only accepts literal path. This solve the issue where some commands depending on that meth...

X Description: PR Summary Unescape non-literal, non-glob path before calling GetUnresolvedProviderPathFromPSPath since it only accepts literal path. This solve the issue where some commands depending on that meth...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/7405

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:35a85190-b646-a8e7-ed96-e8945b3302a7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9648:1ED7C1:2E59BA:40E8B9:6A5A4991
html-safe-nonce1fc979160e9710721c538a644bb39907a5d8fa016c4946ba9a969657b3185cd0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjQ4OjFFRDdDMToyRTU5QkE6NDBFOEI5OjZBNUE0OTkxIiwidmlzaXRvcl9pZCI6IjkxMTYyNDU4MjE4ODA5NDUwNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacca4f84d6b26396384e9f7fb9c2594a25f41d5881631e484e372d2fb292e0ede5
hovercard-subject-tagpull_request:204796766
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/7405/files
twitter:imagehttps://avatars.githubusercontent.com/u/16373649?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/16373649?s=400&v=4
og:image:altPR Summary Unescape non-literal, non-glob path before calling GetUnresolvedProviderPathFromPSPath since it only accepts literal path. This solve the issue where some commands depending on that meth...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea793cd1fa898929111edad5857ee1f24ecf4bf7702525e67357cabc9df136fc3
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5aec27bb9c4f7ebe5fbbcd1533a5509e63a570a1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/7405/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F7405%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F7405%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/7405/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/7405/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/7405/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7405/files
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 54.5k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.3k https://github.com/PowerShell/PowerShell/issues
Pull requests 287 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
kwkamhttps://github.com/kwkam
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
kwkam:wc-pathutilshttps://github.com/kwkam/PowerShell/tree/wc-pathutils
Conversation 4 https://github.com/PowerShell/PowerShell/pull/7405
Commits 2 https://github.com/PowerShell/PowerShell/pull/7405/commits
Checks 0 https://github.com/PowerShell/PowerShell/pull/7405/checks
Files changed https://github.com/PowerShell/PowerShell/pull/7405/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7405/files
PathUtils: handle escaped -Path correctly https://github.com/PowerShell/PowerShell/pull/7405/files#top
Show all changes 2 commits https://github.com/PowerShell/PowerShell/pull/7405/files
ae892e2 [Feature] PathUtils: handle literal -Path correctly kwkam Jul 30, 2018 https://github.com/PowerShell/PowerShell/pull/7405/commits/ae892e2fe8c892c53f5bd69d3e62a64f04cf035c
90d6f52 [Feature] Fix code format kwkam Jul 30, 2018 https://github.com/PowerShell/PowerShell/pull/7405/commits/90d6f52f57f2b647fe19be8790041203da90eefb
Clear filters https://github.com/PowerShell/PowerShell/pull/7405/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7405/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7405/files
PathUtils.cs https://github.com/PowerShell/PowerShell/pull/7405/files#diff-2bd22a7e60ca6872d2757b0f575d658af263bc63ade58368634bf01c3a4872e1
Out-File.Tests.ps1 https://github.com/PowerShell/PowerShell/pull/7405/files#diff-7ebdf97d4b393afb5088443e040b14effc72402dd1d355c870918ab2ef6d2f69
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
src/System.Management.Automation/utils/PathUtils.cshttps://github.com/PowerShell/PowerShell/pull/7405/files#diff-2bd22a7e60ca6872d2757b0f575d658af263bc63ade58368634bf01c3a4872e1
View file https://github.com/kwkam/PowerShell/blob/90d6f52f57f2b647fe19be8790041203da90eefb/src/System.Management.Automation/utils/PathUtils.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/7405/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/7405/files#diff-2bd22a7e60ca6872d2757b0f575d658af263bc63ade58368634bf01c3a4872e1
https://github.com/PowerShell/PowerShell/pull/7405/files#diff-2bd22a7e60ca6872d2757b0f575d658af263bc63ade58368634bf01c3a4872e1
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
test/powershell/Modules/Microsoft.PowerShell.Utility/Out-File.Tests.ps1https://github.com/PowerShell/PowerShell/pull/7405/files#diff-7ebdf97d4b393afb5088443e040b14effc72402dd1d355c870918ab2ef6d2f69
View file https://github.com/kwkam/PowerShell/blob/90d6f52f57f2b647fe19be8790041203da90eefb/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-File.Tests.ps1
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/7405/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/7405/files#diff-7ebdf97d4b393afb5088443e040b14effc72402dd1d355c870918ab2ef6d2f69
https://github.com/PowerShell/PowerShell/pull/7405/files#diff-7ebdf97d4b393afb5088443e040b14effc72402dd1d355c870918ab2ef6d2f69
https://github.com/PowerShell/PowerShell/pull/7405/files#diff-7ebdf97d4b393afb5088443e040b14effc72402dd1d355c870918ab2ef6d2f69
https://github.com/PowerShell/PowerShell/pull/7405/files#diff-7ebdf97d4b393afb5088443e040b14effc72402dd1d355c870918ab2ef6d2f69
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.