-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
What steps will reproduce the bug?
- cat a file into bat using
--pager=builtin - notice no output
- also fails when the file is stdin
bat --pager=builtin < README.md - notice if you remove
--pager=builtinboth examples work - notice it works if you use bat on the file directly
bat --pager=builtin README.md
What happens?
Nothing is output. The exit code is 0 and there are no errors. Tried with a large file and one with just a few lines.
What did you expect to happen instead?
The file is displayed
How did you install bat?
cargo install bat
bat version and environment
Software version
bat 0.26.0
Operating system
- OS: macOS 15.6.1 Sequoia
- Kernel: 24.6.0
Command-line
bat --pager=builtin --diagnostic Environment variables
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
COLORTERM=truecolor
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
LESS=<not set>
MANPAGER='sh -c '\''col -bx | bat -l man -p'\'''
NO_COLOR=<not set>
PAGER=<not set>
SHELL=/bin/zsh
TERM=xterm-256color
XDG_CACHE_HOME=/Users/Z001J31/.cache
XDG_CONFIG_HOME=/Users/Z001J31/.configSystem Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Could not read contents of '/Users/Z001J31/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/Users/Z001J31/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/Users/Z001J31/.cache/bat' not found
Compile time information
- Profile: release
- Target triple: aarch64-apple-darwin
- Family: unix
- OS: macos
- Architecture: aarch64
- Pointer width: 64
- Endian: little
- CPU features: aes,bf16,bti,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,i8mm,jsconv,lor,lse,neon,paca,p
acg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh - Host: aarch64-apple-darwin
Less version
Could not run command 'builtin': No such file or directory (os error 2)