René's URL Explorer Experiment


Title: Stringification behavior of FileInfo / Directory instances has changed since v6.0.2 · Issue #7132 · PowerShell/PowerShell · GitHub

Open Graph Title: Stringification behavior of FileInfo / Directory instances has changed since v6.0.2 · Issue #7132 · PowerShell/PowerShell

X Title: Stringification behavior of FileInfo / Directory instances has changed since v6.0.2 · Issue #7132 · PowerShell/PowerShell

Description: How FileInfo / DirectoryInfo instances stringify implicitly used to depend on the specifics of the Get-ChildItem call that emitted them. Previously, a Get-ChildItem command that targeted a directory path only would yield child items that...

Open Graph Description: How FileInfo / DirectoryInfo instances stringify implicitly used to depend on the specifics of the Get-ChildItem call that emitted them. Previously, a Get-ChildItem command that targeted a director...

X Description: How FileInfo / DirectoryInfo instances stringify implicitly used to depend on the specifics of the Get-ChildItem call that emitted them. Previously, a Get-ChildItem command that targeted a director...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7132

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stringification behavior of FileInfo / Directory instances has changed since v6.0.2","articleBody":"How `FileInfo` / `DirectoryInfo` instances stringify implicitly used to depend on the specifics of the `Get-ChildItem` call that emitted them.\r\n\r\nPreviously, a `Get-ChildItem` command that targeted a directory path only would yield child items that stringified to their mere _name_ rather than to their full path.\r\n\r\nThis now behaves differently in PowerShell Core v6.1.0-preview.3.\r\n\r\nWhile the new behavior is more predictable and would actually resolve part of #6057, it is a - presumably unintended - breaking change.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\nCreate a temp. dir `tmpDir` with single file `tmpFile`, then use `Get-ChildItem` to enumerate `tmpDir` and stringify the resulting item:\r\n\r\n```powershell\r\n$null > (Join-Path (New-Item -force -Type Directory tmpDir) tmpFile); Get-ChildItem tmpdir | % { \"$_\" }\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\ntmpFile\r\n```\r\n\r\nThat is, only the file's _name_ is reported.\r\nThis is what happened up until at least v6.0.2, and still happens in Windows PowerShell.\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\n/Users/jdoe/tmpdir/tmpFile\r\n```\r\n\r\nThat is, stringification now results in the _full path_.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\r\n```powershell\r\nPowerShell Core v6.1.0-preview.3\r\n```\r\n\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2018-06-21T16:02:02Z","url":"https://github.com/PowerShell/PowerShell/issues/7132"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5a9083d1-ae4b-7d4f-1a00-d44e96578919
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE66C:2DE51:36C5EC:4E864A:6AFDA633
html-safe-nonce8a37e40719b47be9d156227f3a6aa53fd7298a3af404f3b6792fdaee74864a2f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjZDOjJERTUxOjM2QzVFQzo0RTg2NEE6NkFGREE2MzMiLCJ2aXNpdG9yX2lkIjoiNjcxNzE0Mzc5NTQ4MzEyNTI5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac27423baf9c61e4825c5b18695ffd0cd391912698b1ba562a0637a92433a87e5b
hovercard-subject-tagissue:334558564
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/7132/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1af7cfde45b13ca733459d692a692ec3175d01c8ac7db7a66e61022da03ec8c6/PowerShell/PowerShell/issues/7132
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1af7cfde45b13ca733459d692a692ec3175d01c8ac7db7a66e61022da03ec8c6/PowerShell/PowerShell/issues/7132
og:image:altHow FileInfo / DirectoryInfo instances stringify implicitly used to depend on the specifics of the Get-ChildItem call that emitted them. Previously, a Get-ChildItem command that targeted a director...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemklement0
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/7132#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F7132
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F7132
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/7132
Reloadhttps://github.com/PowerShell/PowerShell/issues/7132
Reloadhttps://github.com/PowerShell/PowerShell/issues/7132
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests366 (366)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/7132
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/7132
Stringification behavior of FileInfo / Directory instances has changed since v6.0.2https://github.com/PowerShell/PowerShell/issues/7132#top
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
Resolution-ExternalThe issue is caused by external component(s).https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-External%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Jun 21, 2018https://github.com/PowerShell/PowerShell/issues/7132#issue-334558564
#6057https://github.com/PowerShell/PowerShell/issues/6057
Nexthttps://github.com/PowerShell/PowerShell/issues/7132?timeline_page=1
Michael Klement (mklement0)https://github.com/mklement0
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 21, 2018https://github.com/PowerShell/PowerShell/issues/7132#event-1694053857
Michael Klement (mklement0)https://github.com/mklement0
on Jun 21, 2018https://github.com/PowerShell/PowerShell/issues/7132#event-1694056713
Michael Klement (mklement0)https://github.com/mklement0
on Jun 21, 2018https://github.com/PowerShell/PowerShell/issues/7132#event-1694061396
Michael Klement (mklement0)https://github.com/mklement0
on Jun 21, 2018https://github.com/PowerShell/PowerShell/issues/7132#event-1694079869
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 21, 2018https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-399191800
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Jun 21, 2018https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-399201459
Ilya (@iSazonov)https://github.com/iSazonov
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 22, 2018https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-399335179
Ilya (iSazonov)https://github.com/iSazonov
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
on Jun 22, 2018https://github.com/PowerShell/PowerShell/issues/7132#event-1695239523
https://github.com/SeeminglyScience
Patrick Meinecke (SeeminglyScience)https://github.com/SeeminglyScience
on Jun 26, 2018https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-400293827
Here's the commit in corefx where the ToString behavior was changedhttps://github.com/dotnet/corefx/commit/e2cd5a8fc468b63255f91f4f28bccddb3bb31e8f
Here's that line specificallyhttps://github.com/dotnet/corefx/blob/6182c9c53f3931461b228fed963e44c0c16d5c45/src/System.IO.FileSystem/src/System/IO/FileSystemInfo.cs#L108
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Jun 26, 2018https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-400301323
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
Ilya (@iSazonov)https://github.com/iSazonov
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 26, 2018https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-400317493
https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/MshObject.cs#L1244https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/MshObject.cs#L1244
https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/MshObject.cs#L1332https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/MshObject.cs#L1332
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Jun 6, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-499308369
Looks like .NET is leaning toward WontFix.https://github.com/dotnet/corefx/issues/38215
Keith Hill (@rkeithhill)https://github.com/rkeithhill
https://github.com/dotnet/corefx/issues/38215https://github.com/dotnet/corefx/issues/38215
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
Joey Aiello (@joeyaiello)https://github.com/joeyaiello
Rob Holt (rjmholt)https://github.com/rjmholt
Review - CommitteeThe PR/Issue needs a review from the PowerShell Committeehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Review%20-%20Committee%22
on Jun 6, 2019https://github.com/PowerShell/PowerShell/issues/7132#event-2392898948
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Jun 6, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-499308787
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
on Jun 12, 2019https://github.com/PowerShell/PowerShell/issues/7132#event-2408926074
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 13, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-501547705
Rob Holt (@rjmholt)https://github.com/rjmholt
Christoph Bergmeister (@bergmeister)https://github.com/bergmeister
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Jun 13, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-501553094
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 13, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-501556708
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Jun 13, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-501739593
#7132 (comment)https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-501451500
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Jun 13, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-501746527
https://github.com/rjmholt
Rob Holt (rjmholt)https://github.com/rjmholt
on Jun 13, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-501768854
#9138https://github.com/PowerShell/PowerShell/issues/9138
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Review - CommitteeThe PR/Issue needs a review from the PowerShell Committeehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Review%20-%20Committee%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Review - CommitteeThe PR/Issue needs a review from the PowerShell Committeehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Review%20-%20Committee%22
on Jun 13, 2019https://github.com/PowerShell/PowerShell/issues/7132#event-2412068694
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Jun 19, 2019https://github.com/PowerShell/PowerShell/issues/7132#issuecomment-503773204
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Resolution-ExternalThe issue is caused by external component(s).https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-External%22
on Jun 19, 2019https://github.com/PowerShell/PowerShell/issues/7132#event-2425717491
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 19, 2019https://github.com/PowerShell/PowerShell/issues/7132#event-2425717564
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
on Jun 19, 2019https://github.com/PowerShell/PowerShell/issues/7132#event-2425718270
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/7132
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/7132
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Discussion%22
Resolution-ExternalThe issue is caused by external component(s).https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-External%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
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.