Title: Auto-completion doesn't work for non build-in commands and path with [] · Issue #14015 · PowerShell/PowerShell · GitHub
Open Graph Title: Auto-completion doesn't work for non build-in commands and path with [] · Issue #14015 · PowerShell/PowerShell
X Title: Auto-completion doesn't work for non build-in commands and path with [] · Issue #14015 · PowerShell/PowerShell
Description: Path auto-completion doesn't work for non build-in commands if path contain square brackets symbols. Steps to reproduce New-Item -Type File -Name '[test].txt' Copy-Item '``[ +
Open Graph Description: Path auto-completion doesn't work for non build-in commands if path contain square brackets symbols. Steps to reproduce New-Item -Type File -Name '[test].txt' Copy-Item '``[ +
X Description: Path auto-completion doesn't work for non build-in commands if path contain square brackets symbols. Steps to reproduce New-Item -Type File -Name '[test].txt' Copy-Item '``[ + <T...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14015
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auto-completion doesn't work for non build-in commands and path with []","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\nPath auto-completion doesn't work for non build-in commands if path contain square brackets symbols.\r\n\r\n## Steps to reproduce\r\n\r\n```\r\nNew-Item -Type File -Name '[test].txt'\r\nCopy-Item '``[ + \u003cTAB\u003e work and became Copy-Item '.\\`[test`].txt'\r\nnotepad '``[ + \u003cTAB\u003e doesn't work\r\n```\r\n\r\n## Expected behavior\r\n\r\n```\r\nTAB-key auto-complete path for any command.\r\n```\r\n\r\n## Actual behavior\r\n\r\n```\r\nPath auto-completion doesn't work if command not pwsh build-in.\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```\r\nPSVersion 7.0.3\r\nPSEdition Core\r\nGitCommitId 7.0.3\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/Nino-kun","@type":"Person","name":"Nino-kun"},"datePublished":"2020-11-09T17:04:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/14015/PowerShell/issues/14015"}
| 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:53a0db69-c1a2-883a-65a1-2d6b0e34ba0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C58:65865:1BB1F4D:262B67A:6A5738B2 |
| html-safe-nonce | d0e24188bfd3b5662e3015f5761b2793611d5b72756be343aa79b273d284e284 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzU4OjY1ODY1OjFCQjFGNEQ6MjYyQjY3QTo2QTU3MzhCMiIsInZpc2l0b3JfaWQiOiI3MjY5MzIwNjczODM1MDM4ODk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7a3a4a4b50ff028f43631dd0acdaa8f3e2fbc1bf36f33c953463f5a4dc23cbf7 |
| hovercard-subject-tag | issue:739203620 |
| 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/14015/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d01048c0ac203d7fe0c4a1262c3e88add2d3eef4d06d89312da6f4b19924c862/PowerShell/PowerShell/issues/14015 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d01048c0ac203d7fe0c4a1262c3e88add2d3eef4d06d89312da6f4b19924c862/PowerShell/PowerShell/issues/14015 |
| og:image:alt | Path auto-completion doesn't work for non build-in commands if path contain square brackets symbols. Steps to reproduce New-Item -Type File -Name '[test].txt' Copy-Item '``[ + |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Nino-kun |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width