Bug 458633

Summary: Pinfo, unlike info, shows man pages instead of info files for some programs
Product: [Fedora] Fedora Reporter: Vasile Gaburici <gaburici>
Component: pinfoAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-04 13:53:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Gave me man page.
none
From my home dir it actually works. none

Description Vasile Gaburici 2008-08-11 08:37:56 UTC
For instance info dvips gives me the info page, while pinfo dvips gives me the (obsolete) man page.

Version-Release number of selected component (if applicable):
pinfo-0.6.9-7.fc9.i386

Comment 1 Miroslav Lichvar 2008-08-11 09:18:33 UTC
Interesting, pinfo dvips seems to work fine here.

Do you have a .pinforc in your $HOME? Can you please make strace of pinfo by "strace -f -o pinfo.strace pinfo dvips" and attach the file here?

Comment 2 Vasile Gaburici 2008-08-11 09:35:54 UTC
Created attachment 313926 [details]
Gave me man page.

I don't have any custom configuration done.

Actually, it fails only from certain directories; if I run it from my home dir it works! Attached is the trace of a "failed" run, meaning it gave me the man page.

Comment 3 Vasile Gaburici 2008-08-11 09:37:12 UTC
Created attachment 313927 [details]
From my home dir it actually works.

"info" however works from any dir.

Comment 4 Miroslav Lichvar 2008-08-11 10:34:40 UTC
The directory where it fails has a "dvips" file which pinfo tries to interpret as info page, fails and then opens the man page.

I'll see if it can be forced to try other directories before opening man page.

Comment 5 Vasile Gaburici 2008-08-11 10:46:29 UTC
(In reply to comment #4)
> The directory where it fails has a "dvips" file which pinfo tries to interpret
> as info page, fails and then opens the man page.
> 
> I'll see if it can be forced to try other directories before opening man page.

For whatever it's worth, the dvips there is a directory; pretty common in texmf trees.

Comment 6 Miroslav Lichvar 2008-09-04 13:53:46 UTC
Fixed in pinfo-0.6.9-8.fc10 by reordering compiled-in INFOPATH, current directory is now searched last. Thanks.