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
pod2usage can invoke system($Config{pager},...) which is "less -R" => error #16246
Comments
From karl@freefriends.orgThis is a bug report for perl from karl@freefriends.org, With stock perl 5.26.1, installed from source, I got this error message Can't exec "/usr/bin/less -R": No such file or directory at I was running "tlmgr help | head", where tlmgr is the "TeX Live manager" That line 164 is: With 5.26.1, my $Config{pager} is "less -R". system takes that string In an earlier perl (5.16.3, distributed as the system version with I compiled 5.26.1 myself and did nothing special about the pager value; I don't know if it is the $Config{pager} value that should be a simple Also on that line: it seems like the user's value $ENV{PAGER} should be Thanks for Perl. --karl P.S. The line before that says: Flags: Site configuration information for perl 5.26.1: Configured by karl at Tue Oct 31 22:13:49 CET 2017. Summary of my perl5 (revision 5 version 26 subversion 1) configuration: @INC for perl 5.26.1: Environment for perl 5.26.1: |
From @jkeenanOn Tue, 14 Nov 2017 18:30:30 GMT, karl@freefriends.org wrote:
Do you in fact not have a program '/usr/bin/less'?
In the absence of an example we'll have trouble responding to this. pod2usage works well for (no warnings or exceptions). Also, AFAICT, '-noperldoc' is a possible switch for the function Pod::Usage::pod2usage() but is *not* a possible switch for the executable program 'pod2usage'.
In addition, Pod::Usage is maintained upstream on CPAN. So if there really is a bug here (I'm not convinced yet), it will have to be reported here: https://rt.cpan.org/Dist/Display.html?Name=Pod-Usage Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgJames E Keenan via RT wrote:
I think he does have the file '/usr/bin/less', but not the file -zefram |
From @xsawyerxOn 11/15/2017 05:41 PM, Zefram wrote:
What would be setting $Config{pager} to shell code? My inclination is to view these as paths and not shell code, but I'm not |
From @LeontOn Thu, Nov 16, 2017 at 12:22 PM, Sawyer X <xsawyerx@gmail.com> wrote:
Setting -R is necessary to support ANSI color codes, which is necessary to IMHO the preferred solution here is to pass $Config{pager} through Leon |
From @xsawyerxOn 11/16/2017 03:14 PM, Leon Timmermans wrote:
If I understand you correctly, perldoc is actually using a different |
From karl@freefriends.org1) I'll be happy to send a report to bug-Pod-Usage if that is desired. Meanwhile, to answer some of the questions that have been asked: 2) It is perl's Configure which is setting $Config{pager} to Configure has evidently been doing this since perl 5.12 (ca.2011). 2) The bug is evident. To repeat, line 164 of current Pod/Usage.pm is: 3) This code in Pod/Usage.pm has not changed since at least 5.10.1. Thus 4) I am nobody, but nevertheless, FWIW & IMHO, it seems a lot more 5) Independently, it still seems to me that, on that line, $ENV{PAGER} Thanks, |
I opened bugs with Pod::Usage at CPAN for these two issues. So I think this can be closed. (Apparently I don't have permission to do so.) |
Closing as Sent to CPAN. |
Migrated from rt.perl.org#132446 (status was 'open')
Searchable as RT132446$
The text was updated successfully, but these errors were encountered: