cvs commit: src/contrib/diff ABOUT-NLS AUTHORS COPYING ChangeLog FREEBSD-upgrade Makefile.am Makefile.in NEWS README THANKS TODO analyze.c bootstrap cmpbuf.c cmpbuf.h config.h config.hin configure configure.in context.c diagmeet.note diff.c diff.h ...

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Wed Jul 25 16:45:10 UTC 2007


On Wed, 25 Jul 2007, Xin LI wrote:

> The info page says:
>
>   An exit status of 0 means no differences were found, 1 means some
> differences were found, and 2 means trouble.  Normally, differing
> binary files count as trouble, but this can be altered by using the
> `-a' or `--text' option, or the `-q' or `--brief' option.

ah so the "definition" of 2 changed. It used to be:

RETURN VALUE
        diff returns 0 if the files are identical or 1 if the files differ.  If
        one or both of the files cannot be opened, then the return value is set
        to 2.

> Do you think this is the problem?  (i.e. does specifying -q changed the 
> behavior back to the previous?)

Yes it does restore the behavior.  I do not really understand what the
description of -q/--brief has to do with binary files (I just tested
that case), as the output stays the same for them with or without -q,
only the return code seems to change. Funny thing;-)

Thanks a lot for the fast reply!

-- 
Bjoern A. Zeeb                                 bzeeb at Zabbadoz dot NeT
Software is harder than hardware  so better get it right the first time.


More information about the cvs-src mailing list