Re: missing exit status for CMP(1)
Jim Meyering <[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.
>
> I'm seeing this on Snow Leopard (10.6.7) and the man page announces:
>
> diffutils 2.8.1 April 2002 CMP(1)
That version is um... a little old. Almost 10 years old.
If you upgrade to diffutils-3.2, you'll see that the man page now says this:
If a FILE is `-' or missing, read standard input.
Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.