[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: missing exit status for CMP(1)
From: |
Jim Meyering |
Subject: |
Re: missing exit status for CMP(1) |
Date: |
Thu, 01 Mar 2012 18:28:39 +0100 |
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.