|
From: | Aaron Bentley |
Subject: | Re: diff -u produces inconsistent header when comparing to a 1-line file |
Date: | Thu, 10 Feb 2005 08:11:08 -0500 |
User-agent: | Debian Thunderbird 1.0 (X11/20050116) |
Andreas Schwab wrote:
Aaron Bentley <address@hidden> writes:Here's an example: $ echo hello | diff -u - /dev/null --- - 2005-02-09 12:08:11.000000000 -0500 +++ /dev/null 2004-02-26 20:16:33.000000000 -0500 @@ -1 +0,0 @@ -helloThe -1 is not a comma-separated pair, but for all other sizes it is a comma-separated pair. Note that 1,2 is used for a two-line file, and 1,3 is used for a three-liner, so 1,1 would be the expected value.The number of lines defaults to 1 if omitted.
Ah. Thanks for the clarification. Aaron
[Prev in Thread] | Current Thread | [Next in Thread] |