Red Hat Bugzilla – Bug 176458
diff "white space" switches non-functional
Last modified: 2007-11-30 17:11:19 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Description of problem:
$ cat -A testa
$ cat -A testb
$ diff -b testa testb
$ diff -B testa testb
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.diff -bB testa testb
Actual Results: The files are shown to differ with respect to white space.
Expected Results: man diff
-b Ignore changes in amount of white space.
-B Ignore changes that just insert or delete blank lines.
Hmm. Responding to my own bug report, I suppose I want "-w Ignore white
space when comparing lines.", which I think means that the man page needs some
changes to the description of "-b". Also, "-B" seems to work in combination
with "-w", but not by itself, yes?
The description of "-b" is correct as-is. To clarify, where there is white
space, changed in the amount of it there is get ignored.
Compare this with -w, where even the presence or not of white space is ignored
The "-B" option works correctly and distinctly from "-w".