coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'man grep' doesn't say what the default for --color is


From: Collin Funk
Subject: Re: 'man grep' doesn't say what the default for --color is
Date: Sun, 04 Jan 2026 16:10:21 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Stan Marsh <gazelle@xmission.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]