Hi, Peter Samuelson wrote: >>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)?
Well, not lately. :) But the manpage actually doesn't mention this anyway (the info pages do, though). > 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. OK. bye, Roland -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]