[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: diff command's -b option fails in certain cases
From: |
Andreas Schwab |
Subject: |
Re: diff command's -b option fails in certain cases |
Date: |
Mon, 27 Oct 2008 16:38:20 +0100 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) |
"Mahendra Ladhe" <address@hidden> writes:
> 1c1
>
> < abcd
>
> ---
>
>> abcd
>
>
>
> As seen above, even though the 2 files differ only in whitespace, the
> whitespace is not ignored even with the -b option.
Not a bug. The difference is in the presence of whitespace, see
(diff)White Space:
The `-b' or `--ignore-space-change' option is stronger. It ignores
white space at line end, and considers all other sequences of one or
more white space characters within a line to be equivalent.
Use -w to ignore all whitespace.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."