Title: functions with `-` on the name wrongfully selected for tab completion · Issue #16577 · PowerShell/PowerShell · GitHub
Open Graph Title: functions with `-` on the name wrongfully selected for tab completion · Issue #16577 · PowerShell/PowerShell
X Title: functions with `-` on the name wrongfully selected for tab completion · Issue #16577 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report n/a Screenshot Environment data PS Version: 7.2.0 PS Ho...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report n/a Screenshot ...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report n/a Screenshot ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/16577
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"functions with `-` on the name wrongfully selected for tab completion","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://www.powershellgallery.com/packages/PSReadLine)\n- [X] Search the existing issues, especially the pinned issues.\n\n### Exception report\n\n```console\nn/a\n```\n\n\n### Screenshot\n\n\r\n\n\n### Environment data\n\n```console\nPS Version: 7.2.0\r\nPS HostName: ConsoleHost (Windows Terminal)\r\nPSReadLine Version: 2.2.0-beta4\r\nPSReadLine EditMode: Windows\r\nOS: 10.0.19041.1288 (WinBuild.160101.0800)\r\nBufferWidth: 120\r\nBufferHeight: 35\n```\n\n\n### Steps to reproduce\n\n1. in a clean pwsh declare any function with a `-` in it's name, i used:\r\n```poweshell\r\nfunction test-{}\r\nfunction test-2{}\r\n```\r\n2. type any command (preferably one that doesn't have any completer) followed by a `-`\r\n3. press `tab` or `ctrl+space`\n\n### Expected behavior\n\nnothing?\n\n### Actual behavior\n\nthe functions with `-` in the name gets inserted","author":{"url":"https://github.com/LuanVSO","@type":"Person","name":"LuanVSO"},"datePublished":"2021-12-08T18:49:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/16577/PowerShell/issues/16577"}
| 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:43fbf340-6b68-5f87-8016-8832e21b0911 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B088:16035A:26D0A83:3496563:6A5481E8 |
| html-safe-nonce | 38065afe97731a6e1d253117c89ca7f4260b2e63813afed14cb333c272945c6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDg4OjE2MDM1QToyNkQwQTgzOjM0OTY1NjM6NkE1NDgxRTgiLCJ2aXNpdG9yX2lkIjoiNjA3NjIzOTE3NjMxMTAxMzg2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fb2db96859ad11fa9c08e8dfc333172ff7c6bab9b6bf2184f81979eeb54eb6c2 |
| hovercard-subject-tag | issue:1074739752 |
| 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/16577/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d269f2f1ab6673cbd18d304eb1a51c29c91a745c8bf4f86c5654e7c1dd20991a/PowerShell/PowerShell/issues/16577 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d269f2f1ab6673cbd18d304eb1a51c29c91a745c8bf4f86c5654e7c1dd20991a/PowerShell/PowerShell/issues/16577 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report n/a Screenshot ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LuanVSO |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width