tags:

views:

26

answers:

1

Could someone give me an explanation for these two switches? Are they mutually exclusive? Or -w includes -b?

thanks

+4  A: 

Consider 3 lines:

1: "ab"
2: "a b"
3: "a  b"

With -w, all three lines compare the same.
With -b, 2 and 3 compare the same but 1 is considered different.

If you use -w then -b is irrelevant.

Brian Nixon
Great and succinct explanation Brian. Thanks!
Emerson