Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pager -R option unrecognized by more #38

Open
stuart-little opened this issue Jul 31, 2018 · 2 comments
Open

pager -R option unrecognized by more #38

stuart-little opened this issue Jul 31, 2018 · 2 comments
Labels
Priority: low get to this whenever Status: needs details the problem description needs more information Status: needs verification issue needs to be verified Status: stalled something is blocking progress Type: bug an existing feature does not work

Comments

@stuart-little
Copy link

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).

@briandfoy
Copy link
Owner

I've just taken over the maintenance of Pod::Perldoc, so I'll look into this. I know it's years old, and it might take me a bit to catch up.

@briandfoy briandfoy added Status: needs verification issue needs to be verified Priority: low get to this whenever Type: bug an existing feature does not work Status: stalled something is blocking progress Status: needs details the problem description needs more information labels Dec 5, 2023
@briandfoy
Copy link
Owner

I'm still investigating this issue, but the way Pod::Perldoc handles pagers is a bit weird.

Can you run the perldoc command under debugging?

 $ env PERLDOCDEBUG=5 perldoc -D ...

This should show the pagers that perldoc guessed. Note that the first pager in the list is from the perl config itself, and I think that has -R attached in many cases:

$ perl -V:pager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: low get to this whenever Status: needs details the problem description needs more information Status: needs verification issue needs to be verified Status: stalled something is blocking progress Type: bug an existing feature does not work
Projects
None yet
Development

No branches or pull requests

2 participants