Description
I'm on a Void linux machine running perl v5.26.1
that comes with Perldoc v3.28
. Perldoc displays pages fine in less, but with the $PAGER environment variable unset leaves the following error when exiting the document:
more: unknown option -R
Try 'more --help' for more information.
I am aware of this issue having been reported and addressed previously, in this discussion as well as this bug report. I gather those problems stemmed from this commit, which has now been patched up, but the problem lingers.
The problem I'm seeing on my system seems to be with this line, which pushes more
first (and does not supersede it unless the $PAGER ENV variable is set, which in my case it wasn't ), coupled with the fact that the -R option is still set for that pager (which now perldoc guesses is more
).
I've checked that setting $PAGER to which less
displays in less
without the trailing error after closing the documents. I'e also checked that setting $MORE to some valid more
option displays perldoc pages in more
with no error (because as the code at teh second link says, if $ENV{MORE} is set it's left alone).