Z strony diffpodręcznika:
-b, --ignore-space-change
ignore changes in the amount of white space
-w, --ignore-all-space
ignore all white space
Z tego wnoszę, że różnica między -bi -wopcji należy stwierdzić, że -bjest wrażliwy na rodzaj białych znaków (tabs porównaniu ze spacjami). Wydaje się jednak, że tak nie jest:
$ diff 1.txt 2.txt
1,3c1,3
< Four spaces, changed to one tab
< Eight Spaces, changed to two tabs
< Four spaces, changed to two spaces
---
> Four spaces, changed to one tab
> Eight Spaces, changed to two tabs
> Four spaces, changed to two spaces
$ diff -b 1.txt 2.txt
$ diff -w 1.txt 2.txt
$
Jaka jest różnica między opcjami -bi -w? Testowane z diffutils 3.2 na Kubuntu Linux 13.04.