Stan Marsh <[email protected]> writes:
>>Apologies for the lack of a link, but gnu.org is not responding at the
>>moment. In the info docs the following text is under '--color':
>
> FWIW, I checked "info grep" and could not find any mention of it.
> The description of "--color" was identical to that found in the man
> page. Maybe my system is out of date.
If you use 'info grep' does it say something like the following in the
bottom line:
"Info: (*manpages*)grep"
If so, I guess your distribution doesn't ship the info page by default,
causing 'info' to show the man page.
You can also use 'info --debug' to see what is happening. Using 'curl'
to represent a program with no info pages:
$ echo $INFOPATH
/home/collin/.local/share/info
$ info --debug 3 ls > /dev/null
info: adding /home/collin/.local/share/info to INFOPATH
info: adding /usr/share/info to INFOPATH
info: found file /home/collin/.local/share/info/dir
info: found file /usr/share/info/dir
info: looking for file "coreutils"
info: looking for file coreutils in /home/collin/.local/share/info
info: found file /home/collin/.local/share/info/coreutils.info
[...]
$ info --debug 3 curl > /dev/null
info: adding /home/collin/.local/share/info to INFOPATH
info: adding /usr/share/info to INFOPATH
info: found file /home/collin/.local/share/info/dir
info: found file /usr/share/info/dir
info: looking for file "curl"
info: looking for file curl in /home/collin/.local/share/info
info: looking for file curl in /usr/share/info
info: falling back to manpage node
[...]
Collin