LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2007, 07:16 AM   #1
lorenz
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
"info ls" shows man page instead of info page


I've just installed Slackware 12.0

I tried to find something about this issue on this forum and with google but I could not find anything.

In some distro (for example Fedora) the command "ls info" open the info page of ls while in Slackware open the man page of the command indside the info reader.

The ls info documentation is installed since I can view it if I open the coreutils info page and navigate through the menus.

It's not a big problem but I would like to fix it.
 
Old 09-17-2007, 02:53 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
'man ls' works.
 
Old 09-17-2007, 03:06 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I'm not sure if it's a default behavior everywhre, but if 'info' (btw. the command is 'info ls', not 'ls info'..) can't find or access the info page, it probably shows the man page instead. This happens to loads of pages, and is one reason why I just prefer using 'man'. If you are certain that the info page that you should be seeing with 'info ls' is there, but you can't view it, start finding out why. Is it in the correct place, and does it have correct permissions?

Sorry I can't help much more with this, but like I said, I don't use info pages that much..I don't think they're as good as man-pages, the user interface, links and all just make it more difficult to see the document as a whole. Anyway.
 
Old 09-17-2007, 03:07 AM   #4
Vrajgh
Member
 
Registered: Aug 2005
Posts: 68

Rep: Reputation: 33
The original poster is complaining that "info ls" shows the man page instead of the info page. How does "man ls" help in this case?

It seems odd to me that the OP can navigate to the correct page but it doesn't find it when invoked from the command line.

Last edited by Vrajgh; 09-17-2007 at 03:08 AM.
 
Old 09-17-2007, 03:12 AM   #5
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Does it work with
Code:
info -f /path/to/the/infofile
It should..if that works, but just
Code:
info infofile
doesn't (where 'infofile' is this semi-missing file), then it could probably be that the directory where the file is isn't in INFOPATH or something. You could then try to use
Code:
info -d /path/to/the/
to add /path/to/the/ directory to INFOPATH (the directory where this 'missing' infopage is in).

Code:
man info
 
Old 09-17-2007, 07:45 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Don't know if this is relevant, but I had to edit the info/dir file, replacing "fileutils, "sh-utils", and "textutils" entries with "coreutils".
 
Old 09-17-2007, 03:48 PM   #7
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.2 & Current
Posts: 96

Rep: Reputation: 30
Looks like the /usr/info/dir file installed from the texinfo package is out of date. Looking at the source for this package the slackbuild script copies a dir file dated 2002. I rebuilt my dir file as follows.

cd /usr/info
rm dir
for file in $(ls *gz); do install-info $file dir; done

I've sent Pat an email so it will hopefully be fixed in the next release.
 
Old 09-17-2007, 05:31 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,928
Blog Entries: 45

Rep: Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160Reputation: 3160
Hi,

Do a 'man info';

Quote:
excerpt from 'man info';

INFO(1) User Commands INFO(1)

NAME
info - read Info documents

SYNOPSIS
info [OPTION]... [MENU-ITEM...]

DESCRIPTION
Read documentation in Info format. <<<<<<here
Quote:
man - format and display the on-line manual pages
If you do a 'info man' read the top portion. Another way to see the format difference for the documentation. The idea behind 'info' is to give the user the means to work within the documentation. 'Man' just formats and displays the man pages.
 
Old 09-21-2007, 08:47 PM   #9
lorenz
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks everybody for the help.
I could solve the problem with the suggestions of vulcan59 and brianL.

I also found useful the explication of the /usr/info/dir file in the following section of the Texinfo manual
http://www.gnu.org/software/texinfo/...g-an-Info-File

To understand how Texinfo works I read this article, even if it's quite outdated
http://www2.linuxjournal.com/article/2840
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between "man" and "info" gexecuter Linux - Newbie 17 09-26-2007 03:17 PM
"Man page"-ERROR preeth45 Slackware 3 03-06-2007 07:33 AM
info <program> just gives me the man page Robhogg Ubuntu 1 10-17-2006 01:25 PM
Man Page "Standards" or Writing Guides? TGWDNGHN Programming 3 11-25-2005 08:54 PM
my web browser "mozilla fire fox" isn't rendering the page, rather opening the page amolgupta Linux - Software 2 07-26-2005 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration