Title: Path is not parsed correctly if '[' is present in the path · Issue #12168 · PowerShell/PowerShell · GitHub
Open Graph Title: Path is not parsed correctly if '[' is present in the path · Issue #12168 · PowerShell/PowerShell
X Title: Path is not parsed correctly if '[' is present in the path · Issue #12168 · PowerShell/PowerShell
Description: Steps to reproduce $sess = New-PSSession -ComputerName localhost Copy-Item -Path E:\test.txt -Destination 'e:\[test\' -ToSession $sess Expected behavior Should copy the file E:\test.txt to E:\[test directory Actual behavior Failed as '['...
Open Graph Description: Steps to reproduce $sess = New-PSSession -ComputerName localhost Copy-Item -Path E:\test.txt -Destination 'e:\[test\' -ToSession $sess Expected behavior Should copy the file E:\test.txt to E:\[test...
X Description: Steps to reproduce $sess = New-PSSession -ComputerName localhost Copy-Item -Path E:\test.txt -Destination 'e:\[test\' -ToSession $sess Expected behavior Should copy the file E:\test.txt to ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/12168
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Path is not parsed correctly if '[' is present in the path","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?view=powershell-6).\r\n\r\n--\u003e\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n$sess = New-PSSession -ComputerName localhost\r\nCopy-Item -Path E:\\test.txt -Destination 'e:\\[test\\' -ToSession $sess\r\n```\r\n\r\n# Expected behavior\r\n\r\n```\r\nShould copy the file E:\\test.txt to E:\\[test directory\r\n```\r\n\r\n# Actual behavior\r\n\r\n```\r\nFailed as '[' is seen as regex\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```\r\nApplicable to all versions\r\n```\r\n","author":{"url":"https://github.com/krishnayalavarthi","@type":"Person","name":"krishnayalavarthi"},"datePublished":"2020-03-20T22:40:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":25},"url":"https://github.com/12168/PowerShell/issues/12168"}
| 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:14c8ca63-7a5c-ced2-a26b-97b58b50b4f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8418:2BB422:2FDF5AF:31151AF:6A59178A |
| html-safe-nonce | 3f0312b8389bd33d59d6fe951538c1dc126be96d8ce5e7cf6b28e04845d05161 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDE4OjJCQjQyMjoyRkRGNUFGOjMxMTUxQUY6NkE1OTE3OEEiLCJ2aXNpdG9yX2lkIjoiMTM4MzYxMDU4OTY0ODcxMDUwIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 1c26f4bedd06d3319fc0dfc2fcd3ad043cb4e6425616474d48e98e270d6b4895 |
| hovercard-subject-tag | issue:585362599 |
| 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/12168/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af3dde6b3f0bfe1ba6773b9cea7f88aa3e058422337ecb159b4a2c6febe8158c/PowerShell/PowerShell/issues/12168 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af3dde6b3f0bfe1ba6773b9cea7f88aa3e058422337ecb159b4a2c6febe8158c/PowerShell/PowerShell/issues/12168 |
| og:image:alt | Steps to reproduce $sess = New-PSSession -ComputerName localhost Copy-Item -Path E:\test.txt -Destination 'e:\[test\' -ToSession $sess Expected behavior Should copy the file E:\test.txt to E:\[test... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | krishnayalavarthi |
| hostname | github.com |
| expected-hostname | github.com |
| None | de7b53b927e5bfbf02672a5b2960bf82d1608d91c6d7888039c826ebf8d4ca76 |
| 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 | 020f8e5d3a42ae1a22d3f297198ccfca124edd1d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width