Skip to content

bat attempts to execute itself when PAGER="bat" #383

@iravid

Description

@iravid

I like having other applications use bat as a pager, so I export PAGER="bat" in my .zshrc. However, bat will also use that env var and try to execute itself (recursively, endlessly).

To replicate:

export PAGER="bat"
# This hangs
ls | bat

# In another shell:
ps -fe | grep bat | wc -l
# 177 on my system

unset PAGER
# Works correctly
ls | bat

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions