[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cmp man page lacks any mention of exit codes
From: |
Felipe Kellermann |
Subject: |
Re: cmp man page lacks any mention of exit codes |
Date: |
Wed, 1 Dec 2004 11:19:53 -0200 (BRDT) |
User-agent: |
Pine <http://www.washington.edu/pine/> |
On Tue, 30 Nov 2004 4:14am +0800, Dan Jacobson wrote:
> The cmp man page lacks any mention of exit codes.
> As we know, one of the main points of interest of cmp is its exit
> code. Sure you mention it on the info page but not the man page.
Dan,
cmp isn't a coreutils' software - on GNU systems it's a diffutils'
software. Reading cmp(1) on my Linux system I see it has the same
documentation as my BSD system, and it describes the exit codes:
The cmp utility exits with one of the following values:
0 The files are identical.
1 The files are different; this includes the case where one file is
identical to the first part of the other. In the latter case, if
the -s option has not been specified, cmp writes to standard output
that EOF was reached in the shorter file (before any differences
were found).
>1 An error occurred.
--
Felipe Kellermann
- Re: cmp man page lacks any mention of exit codes,
Felipe Kellermann <=