Skip to content

PAGER=batcat turns into a fork nightmare #2023

@rsamuelklatchko

Description

@rsamuelklatchko

I decided to make batcat my PAGER and when I tried setting:

PAGER=batcat

it didn't work. After some troubleshooting I realized that batcat was forking/execing itself and was able to fix it by also adding:

BAT_PAGER=less

while this solved the problem it was not obvious. One suggestion is when reading PAGER, if the value is the binary name (or ends with /{binary_name}) the value is ignored and the default is used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions