New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MANPAGER won't work on Mandoc's man implementation #1145
Comments
|
Thank you for reporting this. This is not a bug in |
|
It does not work because mandoc does not do shell tokenization of the
|
Not that performance matters much for a shell script like this, but you can even cut out the cat invocation: col -bx < "$1" | bat --language man -p |
|
If you don't have |
What version of
batare you using?0.15.4
Describe the bug you encountered:
Using
export MANPAGER="sh -c 'col -bx | bat -l man -p'"results in
-bx: 1: Syntax error: Unterminated quoted stringDescribe what you expected to happen?
paging with bat
How did you install
bat?Void Linux package manager
** The bug **
It was already reported here for Termux, and it coudl well be the case for Alpine and other Mandoc's man implementations cases.
See termux/termux-packages#4781 (comment)
** Lazy solution **
Instead of recompiling man from GNU (https://www.nongnu.org/man-db/development.html)
one can be using
export MANPAGER='nvim +Man!'The text was updated successfully, but these errors were encountered: