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

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

Re: diff -b does not actually work with newlines


From: David Kastrup
Subject: Re: diff -b does not actually work with newlines
Date: Fri, 13 Jul 2007 20:21:45 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux)

Paul Eggert <address@hidden> writes:

> diff -b is working as specified.  It sounds like you want wdiff; you
> might try using that instead.

wdiff does not return suitable output or take suitable options.

Could you explain how you figure that diff -b is working as specified?
Here is the specification I come up with:

(info "(diff) White Space")

    1.2 Suppressing Differences in Blank and Tab Spacing
    ====================================================

    The `-b' and `--ignore-space-change' options ignore white space at line
    end, and considers all other sequences of one or more white space
    characters to be equivalent.

[...]

    "White space" characters include tab, newline, vertical tab, form
    feed, carriage return, and space; some locales may define
    additional characters to be white space.

[...]

newlines are quite explicitly listed as white space here.  So what
specification are you referring to?

-- 
David Kastrup




reply via email to

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