bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does diff generate diff or patch files?


From: Hans-Bernhard Broeker
Subject: Re: Does diff generate diff or patch files?
Date: 11 Feb 2006 01:32:37 GMT

Bob Rossi <address@hidden> wrote:

> Is `diff f.1 f.2 > f.diff' more appropriate than `diff f.1 f.2 > f.patch'?

The question doesn't make terribly much sense.  It is based on the
assumption that the name of a file is, in any way, shape or form, an
important part of it.  It's not.  A name is no more part of a file
than your name is part of you.  Was it more appropriate for your
parents to call you "Bob" or "Charles"?

That said, the second command line you showed actually is a bit less
appropriate than the former: non-context diffs may sometimes be
tolerable for a simple file comparison', but they're a guaranteed bad
idea if you're going to use that file with 'patch'.

-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]