Title: 'man' should be removed as an alias on Windows installations · Issue #19652 · PowerShell/PowerShell · GitHub
Open Graph Title: 'man' should be removed as an alias on Windows installations · Issue #19652 · PowerShell/PowerShell
X Title: 'man' should be removed as an alias on Windows installations · Issue #19652 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement The man alias on Windows is not needed and adds confusion when using PowerShell with multiple operating systems. On Windows PS> get-command man CommandType Name Version Source ----------- ---- ---...
Open Graph Description: Summary of the new feature / enhancement The man alias on Windows is not needed and adds confusion when using PowerShell with multiple operating systems. On Windows PS> get-command man CommandType ...
X Description: Summary of the new feature / enhancement The man alias on Windows is not needed and adds confusion when using PowerShell with multiple operating systems. On Windows PS> get-command man CommandTy...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19652
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'man' should be removed as an alias on Windows installations","articleBody":"### Summary of the new feature / enhancement\n\nThe `man` alias on Windows is not needed and adds confusion when using PowerShell with multiple operating systems.\r\n\r\nOn Windows\r\n\r\n```\r\nPS\u003e get-command man\r\n\r\nCommandType Name Version Source\r\n----------- ---- ------- ------\r\nAlias man -\u003e help\r\n```\r\n\r\nOn Linux\r\n\r\n```\r\nPS\u003e get-command man\r\n\r\nCommandType Name Version Source\r\n----------- ---- ------- ------\r\nApplication man 0.0.0.0 /usr/bin/man\r\n```\r\n\r\nSo depending on the system you are using they return completely different information.\r\n\r\nOn Linux\r\n\r\n```\r\nPS\u003e man pwsh\r\nPWSH(1) PWSH(1)\r\n\r\nNAME\r\n pwsh - PowerShell command-line shell and .NET REPL\r\n\r\nSYNOPSIS\r\n pwsh [-NoLogo] [-NoExit] [-NoProfile] [-NonInteractive] [-InputFormat {Text | XML}] [-OutputFormat {Text |\r\n XML}] [-EncodedCommand Base64EncodedCommand] [-File filePath args] [-ExecutionPolicy ExecutionPolicy] [-Com‐\r\n mand { - | script-block [-args arg-array] | string [CommandParameters] } ]\r\n\r\nDESCRIPTION\r\n PowerShell is an automation and configuration management platform. It consists of a cross-platform (Windows,\r\n Linux and macOS) command-line shell and associated scripting language.\r\n```\r\n\r\nBut on Windows,\r\n\r\n```\r\nPS\u003e man pwsh\r\nGet-Help:\r\nLine |\r\n 64 | $help = Get-Help @PSBoundParameters\r\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n | Get-Help could not find pwsh in a help file in this session. To download updated help topics type: \"Update-Help\". To get help online, search for the help topic in the TechNet library at https://go.microsoft.com/fwlink/?LinkID=107116.\r\n```\r\n\r\n`man` as a command has no historical lineage on Windows except for with Unix/shell emulators. `help` does, and even existed in MSDOS `commmand.com`.\r\n\r\nHaving `man` as an alias does not \"make PowerShell like bash\" because it returns completely different information.\r\n\n\n### Proposed technical implementation details (optional)\n\nRemove the 'man' alias on windows installations.","author":{"url":"https://github.com/rhubarb-geek-nz","@type":"Person","name":"rhubarb-geek-nz"},"datePublished":"2023-05-13T02:26:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/19652/PowerShell/issues/19652"}
| 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:a64d44f3-5a41-c520-29f2-06cbdc4d4723 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9204:291741:203683A:2ED042F:6A54F324 |
| html-safe-nonce | 9814b30a79fc62baf799f9cd50129e69ef6a04411a41b54900ebc237e03f1e7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjA0OjI5MTc0MToyMDM2ODNBOjJFRDA0MkY6NkE1NEYzMjQiLCJ2aXNpdG9yX2lkIjoiNzI4OTA4ODQ3MTI2ODEyNzUyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aca5ea7133c2e8f9f51cdc7d76a4d1729c5b20380488a864c0b5820eeffcf4d1 |
| hovercard-subject-tag | issue:1708398932 |
| 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/19652/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d411b3b0ac423fca53f1ea0d2fc7f1bb58296f1dd960375e1d4454d9e6be6701/PowerShell/PowerShell/issues/19652 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d411b3b0ac423fca53f1ea0d2fc7f1bb58296f1dd960375e1d4454d9e6be6701/PowerShell/PowerShell/issues/19652 |
| og:image:alt | Summary of the new feature / enhancement The man alias on Windows is not needed and adds confusion when using PowerShell with multiple operating systems. On Windows PS> get-command man CommandType ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rhubarb-geek-nz |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 | dd26d3896747463b6bd56edd5e290edb595c3cbc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width