Title: Set-Location -Path + fails because it mishandles the history · Issue #14279 · PowerShell/PowerShell · GitHub
Open Graph Title: Set-Location -Path + fails because it mishandles the history · Issue #14279 · PowerShell/PowerShell
X Title: Set-Location -Path + fails because it mishandles the history · Issue #14279 · PowerShell/PowerShell
Description: Steps to reproduce Open a PowerShell 7.1 window, navigate to a safe folder for experimentation, and issue the following commands: # Create a folder called '[Meta]'. Careful! '-Type Folder' doesn't work! New-Item -Name '[Meta]' -Type Dire...
Open Graph Description: Steps to reproduce Open a PowerShell 7.1 window, navigate to a safe folder for experimentation, and issue the following commands: # Create a folder called '[Meta]'. Careful! '-Type Folder' doesn't ...
X Description: Steps to reproduce Open a PowerShell 7.1 window, navigate to a safe folder for experimentation, and issue the following commands: # Create a folder called '[Meta]'. Careful! '-Type Fold...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14279
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set-Location -Path + fails because it mishandles the history","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6).\r\n\r\n--\u003e\r\n\r\n## Steps to reproduce\r\n\r\nOpen a PowerShell 7.1 window, navigate to a safe folder for experimentation, and issue the following commands:\r\n\r\n```powershell\r\n# Create a folder called '[Meta]'. Careful! '-Type Folder' doesn't work!\r\nNew-Item -Name '[Meta]' -Type Directory\r\n\r\n# Output:\r\n# \r\n# Directory: C:\\Users\\FrankAbignaleXIII\\Desktop\r\n#\r\n# Mode LastWriteTime Length Name\r\n# ---- ------------- ------ ----\r\n# d---- 2020-11-27 23:37 [Meta]\r\n#\r\n\r\n# Change the current folder to '[Meta]'\r\nSet-Location -Path '.\\`[Meta`]\\'\r\n\r\n# Navigate back to \"Desktop\"\r\nSet-Location -Path '-'\r\n\r\n# Navigate forward to '[Meta]'\r\nSet-Location -Path '+'\r\n```\r\n\r\n## Expected behavior\r\n\r\nAfter following the reproduction steps, the user expects the current folder to be the '[Meta]' folder.\r\n\r\n## Actual behavior\r\n\r\nIn PowerShell 7.1, I received the following error:\r\n\r\n```none\r\nSet-Location: Cannot find path 'C:\\Users\\FrankAbignaleXIII\\Desktop\\[Meta]' because it does not exist.\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.1.0\r\nPSEdition Core\r\nGitCommitId 7.1.0\r\nOS Microsoft Windows 10.0.19042\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/skycommand","@type":"Person","name":"skycommand"},"datePublished":"2020-11-27T20:17:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/14279/PowerShell/issues/14279"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:973a2ad0-f3ea-fad7-3a2f-a9168eabbd5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8064:18E9D0:9921D3:CCBF61:6A599170 |
| html-safe-nonce | 03e63e0dcb54fc4475810526a9f3835e53590304ef96bedf470795d181fe89ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDY0OjE4RTlEMDo5OTIxRDM6Q0NCRjYxOjZBNTk5MTcwIiwidmlzaXRvcl9pZCI6Ijg0MTY4NzIxMzc4ODIxNzc5MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a735e4cf2ecb2269058b36348823b3f62b6c2f5b0b6266ad3fea9d1e329b5bfd |
| hovercard-subject-tag | issue:752456173 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/14279/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4bf6f6905b4819dbb80b519ba4c9ee78b43d343c98e3c748e02decd68fa2ca65/PowerShell/PowerShell/issues/14279 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4bf6f6905b4819dbb80b519ba4c9ee78b43d343c98e3c748e02decd68fa2ca65/PowerShell/PowerShell/issues/14279 |
| og:image:alt | Steps to reproduce Open a PowerShell 7.1 window, navigate to a safe folder for experimentation, and issue the following commands: # Create a folder called '[Meta]'. Careful! '-Type Folder' doesn't ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skycommand |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width