Re: missing exit status for CMP(1)

Bob Proulx <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Kurt Bigler wrote:
> man cmp contains no info about exit status, although exit status is
> mentioned in relation to the -s option and I know I've used it in the past,
> so trial and error will tell me which way it works.

The Texinfo format is the preferred documentation format for the GNU
Project.  In the man page it says this:

       The full documentation for cmp is maintained as a Texinfo
       manual.  If the info and cmp programs are properly installed at
       your site, the command

              info cmp

       should give you access to the complete manual.

Note that if you are a "vi" person then you may want to use the
'info --vi-keys' option (or use the 'pinfo' command) which uses
vi-like key bindings for navigation.

In the Texinfo documentation it says:

     An exit status of 0 means no differences were found, 1 means some
  differences were found, and 2 means trouble.

Bob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.