Skip to content

The man page for pwsh on Linux/macOS is not in sync with pwsh -? #19990

@sdwheeler

Description

@sdwheeler

Prerequisites

Steps to reproduce

Run man pwsh on Linux or macOS. Compare that to the output from pwsh -?.

Expected behavior

The help shown does not match the output of `pwsh -?`. There are many missing options and the descriptions are not as detailed.

Actual behavior

see above

Error details

Also, the output of `pwsh -?` contains a lot of Windows-specific information. We should create non-Windows string resources for that output.

Environment data

PS> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions