mdocml default-pager.patch uses 'more -s'; -s option unspported in busybox's more
mdocml is patched[1] to use `/bin/more -s’ (instead of `/usr/bin/more -s’) as the default (man) pager, as /bin/more is provided by busybox.
however, busybox’s more implementation does not support -s, and fails with return code 141 (without opening the file):
$ man man; echo $?
more: -s: No such file or directory
141
There are a few options to fix:
- change default-pager.patch to remove -s and use `/bin/more’
- change default-pager.patch to use the busybox provided `/usr/bin/less’
- set $MANPAGER
- set $PAGER
I personally prefer (2), because it provides the most functionality (less is more) and is of equal complexity to (1). It’s also in line with the previous patch[2] which avoided setting $MANPAGER/PAGER.
[1]
http://git.alpinelinux.org/cgit/aports/tree/main/mdocml/default-pager.patch
[2]
http://git.alpinelinux.org/cgit/aports/commit/main/mdocml/APKBUILD?id=f74021abf32618202b26660a7412e170b95f12ac
(from redmine: issue id 5190, created on 2016-02-25)