| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e05a564b-a6c7-11f0-2e2e-d07e88715347 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B24E:145838:229E36A:2E958CB:6A59A04F |
| html-safe-nonce | 3f5e06c36c58ff14dbedb63cfa77071efc320b5751282bb907358d50a361fdba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjRFOjE0NTgzODoyMjlFMzZBOjJFOTU4Q0I6NkE1OUEwNEYiLCJ2aXNpdG9yX2lkIjoiNzYwNTMyNjAwNzAzNDgxNDU0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b2604bc95ba7609cb48037a7f8f46aef883c2a9eab09d08090b334b74f40f3ce |
| hovercard-subject-tag | pull_request:224159830 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/8080/files |
| twitter:image | https://avatars.githubusercontent.com/u/32407840?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/32407840?s=400&v=4 |
| og:image:alt | PR Summary
Fix #5717.
Fix #8076.
Test-Path is expected to be almost exclusively a True/False response cmdlet, and the cases where it may error or return an unexpected result are a few too many at p... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0b971869dd75eec26500a9de7e85b8137c6bf0f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/8080/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F8080%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F8080%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 |
| Reload | https://github.com/PowerShell/PowerShell/pull/8080/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/8080/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/8080/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/8080/files |
|
PowerShell
| https://github.com/PowerShell |
| PowerShell | https://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.4k
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Code
| https://github.com/PowerShell/PowerShell |
|
Issues
1.2k
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
290
| 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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose |
| iSazonov | https://github.com/iSazonov |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| vexx32:Test-Path/AllowNull | https://github.com/vexx32/PowerShell/tree/Test-Path/AllowNull |
|
Conversation
35
| https://github.com/PowerShell/PowerShell/pull/8080 |
|
Commits
15
| https://github.com/PowerShell/PowerShell/pull/8080/commits |
|
Checks
0
| https://github.com/PowerShell/PowerShell/pull/8080/checks |
|
Files changed
| https://github.com/PowerShell/PowerShell/pull/8080/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/8080/files |
|
Test-Path: Return $false when given an empty or $null -Path/-LiteralPath value
| https://github.com/PowerShell/PowerShell/pull/8080/files#top |
|
Show all changes
15 commits
| https://github.com/PowerShell/PowerShell/pull/8080/files |
|
1313095
Add empty / null path handling to Test-Path
vexx32 Oct 19, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/13130954c6751cacdd3fa668f112856cf5fc2a6a |
|
7d5735a
Update tests to fail correctly under the sole remaining erroring cond…
vexx32 Oct 19, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/7d5735a2f0a2b4726f207065284517dd93317ec6 |
|
2f41783
Use quick-exit code paths instead of lengthy if/else
vexx32 Oct 19, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/2f41783737cbd4c8e69162c92a30a750f870538b |
|
44417f5
Add non-terminating errors for null input
vexx32 Oct 25, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/44417f5d806a894fba23ec6dbedb6cec77a8491c |
|
63e1b8f
Reformat test file for readability
vexx32 Oct 25, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/63e1b8ff29716a31e4aa7cc450dc057005adf38e |
|
d793658
Use more descriptive error ID
vexx32 Oct 25, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/d793658efe8101a6637c72d40572264dfad0430a |
|
794e78b
Add Tests for new behaviour
vexx32 Oct 25, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/794e78ba4bae8163c269af3f59d860f117644761 |
|
cae5294
Remove unnecessary blank line per StyleCop
vexx32 Oct 25, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/cae5294b03a39ca295e65789485076f380d21a6b |
|
60810ca
Add new tests
vexx32 Oct 30, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/60810ca085948377dd419b715fae724c5e4a9104 |
|
e731fab
Clarify it name
vexx32 Oct 30, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/e731fabfbf2a52d37dd64645121054cfafb3b54f |
|
2008e51
Fix endless loop caused by change of error type in tests
vexx32 Oct 30, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/2008e5174ca6028086a693874ee23768050d7d31 |
|
28cc91f
Fix FullyQualifiedErrorID
vexx32 Oct 31, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/28cc91f9225f2f950c436344244bdb0005234eff |
|
0be7bf1
Consolidate ErrorIDs to match
vexx32 Oct 31, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/0be7bf1f5a56edede09cc0d001b1b1e7e6cd4bfb |
|
890fcb1
Add .resx file for TestPath
vexx32 Nov 16, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/890fcb12b5437384183b34afe3ac48aad4fd816d |
|
cddfb79
Use resource file for error string
vexx32 Nov 16, 2018
| https://github.com/PowerShell/PowerShell/pull/8080/commits/cddfb790d796ab53057ec07f5620c0664ac0c724 |
|
Clear filters
| https://github.com/PowerShell/PowerShell/pull/8080/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/8080/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/8080/files |
|
PingPathCommand.cs
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
TestPathResources.resx
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-43cfc042bc4879dc87d48a1b906618818b690d17f72e9e76c2509e7d19128c24 |
|
ErrorPosition.Tests.ps1
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-b34afe25c3121ecada54cd22ae3028f4e36ccde40323705aebde0b08e0febcdd |
|
Test-Path.Tests.ps1
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-68d9fe0dc73a010b75b54e242a2f7d2f9f079dc2045519d536a7249b742e9c14 |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs | https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
View file
| https://github.com/vexx32/PowerShell/blob/cddfb790d796ab53057ec07f5620c0664ac0c724/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/8080/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/8080/files |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-c6539f83e336f8d4109e4130083daeb531c0e5e4efd792ed575c872f44d38557 |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| src/Microsoft.PowerShell.Commands.Management/resources/TestPathResources.resx | https://github.com/PowerShell/PowerShell/pull/8080/files#diff-43cfc042bc4879dc87d48a1b906618818b690d17f72e9e76c2509e7d19128c24 |
|
View file
| https://github.com/vexx32/PowerShell/blob/cddfb790d796ab53057ec07f5620c0664ac0c724/src/Microsoft.PowerShell.Commands.Management/resources/TestPathResources.resx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/8080/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| test/powershell/Language/Scripting/ErrorPosition.Tests.ps1 | https://github.com/PowerShell/PowerShell/pull/8080/files#diff-b34afe25c3121ecada54cd22ae3028f4e36ccde40323705aebde0b08e0febcdd |
|
View file
| https://github.com/vexx32/PowerShell/blob/cddfb790d796ab53057ec07f5620c0664ac0c724/test/powershell/Language/Scripting/ErrorPosition.Tests.ps1 |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/8080/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-b34afe25c3121ecada54cd22ae3028f4e36ccde40323705aebde0b08e0febcdd |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-b34afe25c3121ecada54cd22ae3028f4e36ccde40323705aebde0b08e0febcdd |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-b34afe25c3121ecada54cd22ae3028f4e36ccde40323705aebde0b08e0febcdd |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-b34afe25c3121ecada54cd22ae3028f4e36ccde40323705aebde0b08e0febcdd |
|
| https://github.com/PowerShell/PowerShell/pull/8080/files#diff-b34afe25c3121ecada54cd22ae3028f4e36ccde40323705aebde0b08e0febcdd |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/8080/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |