Your message dated Fri, 24 Mar 2006 17:10:11 +0100 (CET)
with message-id <[EMAIL PROTECTED]>
and subject line Bug#358677: diff: regression: -U does not work for < 3
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
X-Reportbug-Version: 3.18
X-Debbugs-Cc: [EMAIL PROTECTED]
Package: diff
Version: 2.8.7-0.2
Severity: normal

I'm using
        diff -u0 file1 file2
in some automated tests.

Now it doesn't work anymore.
That I should use "-U 0" is ok, but numbers <3 are completely ignored:
        # diff -u -U 0 /tmp/wc/dir1/big_file /tmp/wc/dir2/big_file
        --- /tmp/wc/dir1/big_file       2006-03-23 21:19:36.000000000 +0100
        +++ /tmp/wc/dir2/big_file       2006-03-23 21:19:36.000000000 +0100
        @@ -9997,7 +9997,7 @@
         9997
         9998
         9999
        -10000
        +%0000
         10001
         10002
         10003
This is a clear regression. If I ask for it, it should give no context.


Regards,

Phil



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (850, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=de_AT, LC_CTYPE=de_AT (charmap=ISO-8859-1)

Versions of packages diff depends on:
ii  libc6                         2.3.5-13   GNU C Library: Shared libraries 
an

diff recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
On Thu, 23 Mar 2006, Philipp Marek wrote:

> Package: diff
> Version: 2.8.7-0.2
> Severity: normal
> 
> I'm using
>       diff -u0 file1 file2
> in some automated tests.
> 
> Now it doesn't work anymore.
> That I should use "-U 0" is ok, but numbers <3 are completely ignored:
>       # diff -u -U 0 /tmp/wc/dir1/big_file /tmp/wc/dir2/big_file
>       --- /tmp/wc/dir1/big_file       2006-03-23 21:19:36.000000000 +0100
>       +++ /tmp/wc/dir2/big_file       2006-03-23 21:19:36.000000000 +0100
>       @@ -9997,7 +9997,7 @@
>        9997
>        9998
>        9999
>       -10000
>       +%0000
>        10001
>        10002
>        10003
> This is a clear regression. If I ask for it, it should give no context.

Your script is probably buggy and should be fixed.

Please use just "diff -U 0" which is the POSIX way, not "diff -u -U 0".

Being -u the same as -U 3, one should not be surprised that giving
both -u and -U 0 results in any of the two having precedence over the other.

Thanks.

--- End Message ---

Reply via email to