On 2024-07-24 22:21, Vincent Lefevre wrote: > $ diff -wus <(printf "ab cd\n") <(printf " abcd \n") > Files /proc/self/fd/11 and /proc/self/fd/14 are identical
Doesn't even require the leading/trailing space: $ echo abcd > nospace $ echo ab cd > space $ diff -wus nospace space Files nospace and space are identical FWIW, this happens with diff(1) on FreeBSD & OpenBSD too, so it's not just a GNU diff(1) thing. -tkc