Bat: Resource temporarily unavailable

Created on 6 Jul 2020  路  2Comments  路  Source: sharkdp/bat

What version of bat are you using?
bat 0.15.4

Describe the bug you encountered:
Gives the error: sh: fork: Resource temporarily unavailable instead of showing the file.

Describe what you expected to happen?
I expect to see the file instead of a fork error.

How did you install bat?
nix & home-manager


system

$ uname -srm
Darwin 19.5.0 x86_64

$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.5
BuildVersion: 19F101

bat

$ bat --version
bat 0.15.4

$ env

bat_config

$ cat /Users/ihsan/.config/bat/config

--pager="sh -c 'col -bx | bat -l man -p'"
--theme="base16"```

bat_wrapper

$ cat /Users/ihsan/.nix-profile/bin/bat

#! /nix/store/nfd458cwwymmqpy5qb1q7a92zqp7mqsz-bash-4.4-p23/bin/bash -e
export PATH='/nix/store/ywxnqixkk8qkqhjlw7yd278plxfbr0pp-less-551/bin'${PATH:+':'}$PAT
H
exec -a "$0" "/nix/store/lirjhh8mhi4mi4nsc3yhn8pwv5qs72gj-bat-0.15.4/bin/.bat-wrapped"
  "$@"

bat_wrapper_function

No wrapper function for 'bat'.

No wrapper function for 'cat'.

tool

$ less --version
less 487 (POSIX regular expressions)

bug

All 2 comments

I removed this line from my config file and it is working normally now.

--pager="sh -c 'col -bx | bat -l man -p'"

I removed this line from my config file and it is working normally now.

--pager="sh -c 'col -bx | bat -l man -p'"

Yes, this is calling bat recursively otherwise - which leads to the fork error.

Note that we suggest to use this as a value for MANPAGER, not PAGER: https://github.com/sharkdp/bat#man

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yannallain picture yannallain  路  3Comments

issmirnov picture issmirnov  路  3Comments

gAmUssA picture gAmUssA  路  3Comments

adamtabrams picture adamtabrams  路  3Comments

SamuelMarks picture SamuelMarks  路  3Comments