Skip to content

Installed manpage on Linux does not look like pwsh.1.ronn #21086

Open

Description

@rhubarb-geek-nz

Prerequisites

Steps to reproduce

The man page from the 7.4.1 deb package is rather terse/truncated

Expected behavior

I would like the man page contents to look like pwsh.1.ronn

Actual behavior

PWSH(1)                                                                                                       PWSH(1)

NAME
       pwsh - PowerShell command-line shell and .NET REPL

SYNOPSIS
       pwsh  [-Login] [ [-File] filePath [args] ] [-Command { - | script-block [-args arg-array] | string [CommandPa‐
       rameters] } ] [-ConfigurationFile filePath] [-ConfigurationName string] [-CustomPipeName string]  [-EncodedAr‐
       guments  Base64EncodedArguments]  [-EncodedCommand  Base64EncodedCommand]  [-ExecutionPolicy  ExecutionPolicy]
       [-Help] [-InputFormat {Text | XML}] [-Interactive] [-MTA] [-NoExit] [-NoLogo]  [-NonInteractive]  [-NoProfile]
       [-NoProfileLoadTime]  [-OutputFormat {Text | XML}] [-SettingsFile filePath] [-SSHServerMode] [-STA] [-Version]
       [-WindowStyle

                                                     January 2024                                             PWSH(1)

Error details

none

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Ubuntu 22.04.3 LTS
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

Activity

  1. 237dmitry commented on Jan 17, 2024

    @237dmitry

    pwsh.1.ronn

    Converted to man (troff) format, ronn requires a long list of dependencies (ruby etc). As for man itself:

    $ pacman -Qi man-db | sls 'Depends' -raw                                  
    Depends On: bash gdbm zlib groff libpipeline less libseccomp glibc
  2. amcmannis commented on Apr 17, 2024

    @amcmannis

    Can confirm with the RHEL packages as well.

    EDIT: Was able to generate a more decent man using pandoc:
    pandoc -s -f gfm -t man -o pwsh.man pwsh.md

  3. ChrisTX commented on Jun 29, 2026

    @ChrisTX

    ronn breaking is due to the unescaped < > brackets. Specifically, -WindowStyle <style> in the header causes ronn to assume the rest of the document is the content of a style tag and thus not rendered.

    Adding backslashes to escape them will make ronn produce the page as expected. It will look slightly better than using pandoc since its headers are properly understood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueNeeds-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions