Title: The `help` function includes the `-ShowWindow` parameter on non-Windows platforms · Issue #19904 · PowerShell/PowerShell · GitHub
Open Graph Title: The `help` function includes the `-ShowWindow` parameter on non-Windows platforms · Issue #19904 · PowerShell/PowerShell
X Title: The `help` function includes the `-ShowWindow` parameter on non-Windows platforms · Issue #19904 · 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. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
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. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19904
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The `help` function includes the `-ShowWindow` parameter on non-Windows platforms","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://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\n`help` is a proxy function for `Get-Help` that is loaded into the initial session state when PowerShell starts. As a proxy function, it defines all the parameters that `Get-Help` has. The definition of the proxy function was created for Windows PowerShell but never adjusted for non-Windows.\r\n\r\nSee source code - https://github.com/PowerShell/PowerShell/blob/73630960efa0a84475731bfbee4b46c046be72ad/src/System.Management.Automation/engine/InitialSessionState.cs#L4185-L4187\r\n\r\nThe proxy function includes the `-ShowWindow` parameter for all platforms.\n\n### Expected behavior\n\n```console\nPS /home/sdwheeler\u003e help Get-Command -ShowWindow\r\nhelp: A parameter cannot be found that matches parameter name 'ShowWindow'.\n```\n\n\n### Actual behavior\n\n```console\nPS /home/sdwheeler\u003e help Get-Command -ShowWindow\r\nGet-Help:\r\nLine |\r\n 64 | $help = Get-Help @PSBoundParameters\r\n | ~~~~~~~~~~~~~~~~~~\r\n | A parameter cannot be found that matches parameter name 'ShowWindow'.\n```\n\n\n### Error details\n\n_No response_\n\n### Environment data\n\n```powershell\nPS /home/sdwheeler\u003e $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.3.5\r\nPSEdition Core\r\nGitCommitId 7.3.5\r\nOS Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023\r\nPlatform Unix\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\nPS /home/sdwheeler\u003e lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription: Ubuntu 20.04.6 LTS\r\nRelease: 20.04\r\nCodename: focal\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/sdwheeler","@type":"Person","name":"sdwheeler"},"datePublished":"2023-07-07T15:40:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19904/PowerShell/issues/19904"}
| 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:cdbdf098-b3ae-f036-5058-febae5acd086 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8AE:2F7FEE:11A2041:179455C:6A545055 |
| html-safe-nonce | aa2ed5bf4020b771e387c4e9d222fca622659c7bcc22f8a070ecf24851e1b8a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEFFOjJGN0ZFRToxMUEyMDQxOjE3OTQ1NUM6NkE1NDUwNTUiLCJ2aXNpdG9yX2lkIjoiODgzMzc5NzQyMDg5NzAzMDIyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bae265410ac6f8f467e50744fffef055d56622e59e6029877b9ba252c8b66b9c |
| hovercard-subject-tag | issue:1793759966 |
| 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/19904/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ed27a173715bd3a892678e516eb585425a9513942430f5d56f6d10e69cdba23/PowerShell/PowerShell/issues/19904 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ed27a173715bd3a892678e516eb585425a9513942430f5d56f6d10e69cdba23/PowerShell/PowerShell/issues/19904 |
| 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. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sdwheeler |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width