No output in emulated Arch Linux container
Opened this issue · 2 comments
What steps will reproduce the bug?
On an M2 Pro laptop:
- podman run --rm -it --platform linux/amd64 archlinux (or docker)
- pacman -Syu bat
- echo foo > bar.txt
- bat bar.txt
What happens?
No output:
[root@52964233075c /]# cat bar.txt
foo
[root@52964233075c /]# bat bar.txt
[root@52964233075c /]# echo $?
0What did you expect to happen instead?
I should see "foo" printed.
How did you install bat?
pacman.
bat version and environment
Software version
bat 0.25.0 (v0.25.0-modified)
Operating system
Linux 6.12.13-200.fc41.aarch64
Command-line
/usr/sbin/bat bar.txt --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=<not set>
LANG=C.UTF-8
LC_ALL=<not set>
LESS=<not set>
MANPAGER=<not set>
NO_COLOR=<not set>
PAGER=<not set>
SHELL=<not set>
TERM=xterm
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
Could not read contents of '/root/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/root/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/root/.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: fxsr,sse,sse2
- Host: x86_64-unknown-linux-gnu
Less version
> less --version
Command failed with exit code 127.
Note that I do see output after running pacman -Syu less:
[root@92e06eab2728 /]# bat bar.txt
───────┬────────────────────────────────────────────────────────────────────────
│ File: bar.txt
───────┼────────────────────────────────────────────────────────────────────────
1 │ foo
───────┴────────────────────────────────────────────────────────────────────────I think less should be added to depends in the PKGBUILD. I just submitted an account creation request to be able to PR.
Actually, it might be an issue of when a pager is used:
[root@ebce3fabb962 /]# bat bar.txt
[root@ebce3fabb962 /]# bat --paging=never bar.txt
───────┬────────────────────────────────────────────────────────────────────────
│ File: bar.txt
───────┼────────────────────────────────────────────────────────────────────────
1 │ foo
───────┴────────────────────────────────────────────────────────────────────────At the very least, I feel like bat should not exit with success status (0) when it attempts to invoke a pager but fails.