Date: Wed, 25 Jul 2007 16:44:07 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Xin LI <delphij@delphij.net> Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, Xin LI <delphij@FreeBSD.ORG>, cvs-all@FreeBSD.ORG Subject: Re: 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 ... Message-ID: <20070725163806.Q31116@maildrop.int.zabbadoz.net> In-Reply-To: <46A76AC5.3040808@delphij.net> References: <200707150124.l6F1OkOw088572@repoman.freebsd.org> <20070725145935.J31116@maildrop.int.zabbadoz.net> <46A76A2C.2040209@delphij.net> <46A76AC5.3040808@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070725163806.Q31116>