warn when pager is missing instead of silently falling back

when a configured pager (via BAT_PAGER, PAGER, or --pager) is not found,
bat now shows a warning message before falling back to stdout. this helps
users understand why their pager isn't running and makes it obvious when
there's a typo or PATH issue.

fixes issue #2904
This commit is contained in:
Ian Maloney committed 2026-02-19 21:29:59 +00:00
1 parent fbc05da785
commit d04b960c05
3 files changed
+27 -1

No files matched your search

+1
View File
@@ -10,6 +10,7 @@
- Improve native man pages and command help syntax highlighting by stripping overstriking, see #3517 (@akirk)
## Bugfixes
- Report error when pager is missing instead of silently falling back, see #3588 (@IMaloney)
- Fix crash with BusyBox `less` on Windows, see #3527 (@Anchal-T)
- Fix `bat cache --help` failing with 'unexpected argument' error, see #3580 and #3560 (@NORMAL-EX)
- `--help` now correctly honors `--pager=builtin`. See #3516 (@keith-hall)