Skip to content

__fish_print_help should respect $MANPAGER #9488

@ian-h-chamberlain

Description

@ian-h-chamberlain

It seems that builtins' --help argument seems to display differently than usual man commands:

# Seems to just use my default $PAGER instead of $MANPAGER
MANPAGER='sh -c "col -bx | bat -plman"' printf --help

vs

# Does what I expect
MANPAGER='sh -c "col -bx | bat -plman"' man printf

Since the builtins use the same man-style output it would make sense to use $MANPAGER first, perhaps falling back to $PAGER if unset.

Originally posted by @ian-h-chamberlain in #2170 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions