-
-
Couldn't load subscription status.
- Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What steps will reproduce the bug?
BAT_PAGER='less -R' bat foo- ctrlc
What happens?
less exits.
What did you expect to happen instead?
less shouldn't exit because setting $BAT_PAGER should prevent bat from passing --quit-on-intr to less.
How did you install bat?
Homebrew
bat version and environment
Software version
bat 0.25.0
Operating system
- OS: macOS 15.7.1 Sequoia
- Kernel: 24.6.0
Command-line
bat --diagnostic fooEnvironment variables
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_PAGER='less -R'
BAT_PAGING=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
COLORTERM=truecolor
LANG=en_CA.UTF-8
LC_ALL=<not set>
LESS='--quit-if-one-screen --ignore-case --jump-target=.1 --LONG-PROMPT --quiet --RAW-CONTROL-CHARS --incsearch --no-vbell'
MANPAGER='sh -c '\''awk '\''\'\'''\''{ gsub(/\x1B\[[0-9;]*m/, "", $0); gsub(/.\x08/, "", $0); print }'\''\'\'''\'' | bat -p -lman'\'''
NO_COLOR=<not set>
PAGER=<not set>
SHELL=/usr/local/bin/fish
TERM=xterm-ghostty
XDG_CACHE_HOME=<not set>
XDG_CONFIG_HOME=<not set>System Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
--theme-light="Catppuccin Latte"
--theme-dark="Catppuccin Mocha"
Custom assets metadata
bat_version: 0.25.0
creation_time:
secs_since_epoch: 1760872544
nanos_since_epoch: 104422000
Custom assets
- metadata.yaml, 97 bytes
- syntaxes.bin, 969578 bytes
- themes.bin, 58252 bytes
Compile time information
- Profile: release
- Target triple: x86_64-apple-darwin
- Family: unix
- OS: macos
- Architecture: x86_64
- Pointer width: 64
- Endian: little
- CPU features: cmpxchg16b,fxsr,pclmulqdq,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3
- Host: x86_64-apple-darwin
Less version
> less --version
less 685 (PCRE2 regular expressions)
Copyright (C) 1984-2025 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working