On Sun, Nov 06, 2005 at 05:14:05PM -0600, Peter Samuelson wrote:
> 
> [Roland Stigge]
> > It would also be possible to return the differences-found state via a
> > return/exit value of the script. But that would diverge from common
> > practice (see e.g., diff(1)).
> 
> Heh - did you read diff(1)?  diff *does* in fact return 1 iff any
> differences are found.  So does cmp.  grep is another good example
> (returns 0 iff any matches were found), which makes 'grep -q' very
> useful indeed.
> 
> I favor the exit value approach (consistency with cmp and diff), but
> that *does* mean breaking an existing API that scripts may be depending
> on.  I also favor eliminating the extra chatter, as you propose -
> either by default or with a -q|--quiet.

I prefer the --quiet option, so will go with that (principle of least
surprise).  In the case of debdiff, I'm not sure what the exit code
would mean: would it mean that the file lists are different, that the
control files are different, that there was some difference or what?
Given the nature of debdiff, one would usually expect some sort of
difference.

   Julian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to