Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Could not read contents of '/home/geoadmin/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/home/geoadmin/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/geoadmin/.cache/bat' not found
Compile time information
Profile: release
Target triple: x86_64-unknown-linux-gnu
Family: unix
OS: linux
Architecture: x86_64
Pointer width: 64
Endian: little
CPU features: cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3
Host: x86_64-unknown-linux-gnu
Less version
> less --version
less 590 (POSIX regular expressions)
Copyright (C) 1984-2021 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
What steps will reproduce the bug?
bat
to open a fileWhat happens?
Nothing is displayed, and
journalctl
shows:Even more strange: using bat with
cat <file> | bat
just works!What did you expect to happen instead?
bat should display the file as usual
How did you install
bat
?I used the EPEL release
bat version and environment
Software version
bat 0.24.0
Operating system
Linux 5.14.0-427.16.1.el9_4.x86_64
Command-line
Environment variables
System 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 '/home/geoadmin/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/home/geoadmin/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/geoadmin/.cache/bat' not found
Compile time information
Less version