What steps will reproduce the bug?
- Run bat with a very very long file path
What happens?
───────┬────────────────────────────────────────────────────────────────────────
│ File: /this/is/an/example/for/an/insanely/long/path/./it/might/even/rea
ch/to/the/moon/and/back.txt
───────┼────────────────────────────────────────────────────────────────────────
1 │ ...
What did you expect to happen instead?
───────┬────────────────────────────────────────────────────────────────────────
│ File: /this/is/an/example/for/an/insanely/long/path/./it/might/even/rea
│ ch/to/the/moon/and/back.txt
───────┼────────────────────────────────────────────────────────────────────────
1 │ ...
How did you install bat?
bat version and environment
Software version
bat 0.24.0
Operating system
Linux 5.15.0-91-generic
Command-line
bat /this/is/an/example/for/an/insanely/long/path/./it/might/even/reach/to/the/moon/and/back.txt --diagnostic
Environment variables
SHELL=/bin/bash
PAGER=<not set>
LESS=<not set>
LANG=de_DE.UTF-8
LC_ALL=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
XDG_CONFIG_HOME=<not set>
XDG_CACHE_HOME=<not set>
COLORTERM=truecolor
NO_COLOR=<not set>
MANPAGER=<not set>
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/user/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/home/user/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/user/.cache/bat' is empty
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: fxsr,sse,sse2
- Host: x86_64-unknown-linux-gnu
Less version
> less --version
less 551 (GNU regular expressions)
Copyright (C) 1984-2019 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: http://www.greenwoodsoftware.com/less
What steps will reproduce the bug?
What happens?
───────┬──────────────────────────────────────────────────────────────────────── │ File: /this/is/an/example/for/an/insanely/long/path/./it/might/even/rea ch/to/the/moon/and/back.txt ───────┼──────────────────────────────────────────────────────────────────────── 1 │ ...What did you expect to happen instead?
───────┬──────────────────────────────────────────────────────────────────────── │ File: /this/is/an/example/for/an/insanely/long/path/./it/might/even/rea │ ch/to/the/moon/and/back.txt ───────┼──────────────────────────────────────────────────────────────────────── 1 │ ...How did you install
bat?bat version and environment
Software version
bat 0.24.0
Operating system
Linux 5.15.0-91-generic
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/user/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/home/user/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/user/.cache/bat' is empty
Compile time information
Less version