[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
diff 2.8.1 and blank/white space
From: |
Charlton Wang |
Subject: |
diff 2.8.1 and blank/white space |
Date: |
Fri, 29 Feb 2008 12:29:57 -0500 |
Hi,
I seem to be encountering some weird behaviour with diff 2.8.1. I'm
passing diff the -Bbw arguments and expecting that white space lines
will be ignored. It seems that this works in general but if the second
file has more white space lines than the first AND the last whitespace
line encountered isn't simply a blank line (i.e. just a \n), diff
flags the files as being different. Here are inputs to demonstrate the
difference:
[402] diff -w -b -B diff1.txt diff2-works.txt
[403] diff -w -b -B diff1.txt diff2-broken.txt
14a15,18
>
>
>
>
[404] diff -w -b -B diff2-works.txt diff2-broken.txt
[405]
The only difference between diff2-works.txt and diff2-broken.txt is
the presence of a space character in the second to last line (i.e. the
last whitespace line).
Thanks,
Charlton
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- diff 2.8.1 and blank/white space,
Charlton Wang <=