simple shell script to compare two dirs recursively
Ralf Mardorf
ralf-mardorf at riseup.net
Mon Nov 2 19:07:56 UTC 2020
On Mon, 2 Nov 2020 12:14:11 -0600, Valeri Galtsev wrote:
>diff -r /path1 /path2
Yesno :D. FWIW
diff -r /path1 /path2; echo $?
sometimes could be a PITA, at least on Linux.
I prefer
diff -r --no-dereference /path1 /path2; echo $?
;).
However, I'm used to (bash on) Linux, OTOH
https://www.freebsd.org/cgi/man.cgi?diff
Ctrl+F no-dereference
doesn't find a match. I don't know how soft links are handled by
FreeBSD's diff, but the diff I'm used to tends to fail, without the
--no-dereference option, if soft links are involved. If so, it quasi
suffers from false positives.
More information about the freebsd-questions
mailing list