Date: Mon, 2 Nov 2020 22:51:11 +0100 From: Ralf Mardorf <ralf-mardorf@riseup.net> To: freebsd-questions@freebsd.org Subject: Re: simple shell script to compare two dirs recursively Message-ID: <20201102225111.48fe1c76@archlinux> In-Reply-To: <20201102211638.c756c71b721105cdeb3bd048@sohara.org> References: <34dfc85a-b985-e31f-a6b2-cf14f1f56fd2@nethead.se> <6d734580-55b0-eb70-677c-4270f29a00a9@kicp.uchicago.edu> <20201102200737.27745317@archlinux> <20201102211638.c756c71b721105cdeb3bd048@sohara.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2 Nov 2020 21:16:38 +0000, Steve O'Hara-Smith wrote: >I'm not sure what behaviour you expect but with FreeBSD diff if you >have a directory full of files and a directory full of symlinks to the >same files (with the same names) then diff will find them to be >identical, it simply reads contents and does not notice the symlink. It does matter to either diff the soft link file itself or to diff following the soft link. It could depend on the origin. You might have used a copy command with whatever option and later you diff with or without all original mount points available, or ... There are a few pitfalls related to dangling and not dangling links. However, you easily end up with a diff of a real directory and a soft link file without a valid path to the same directory.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201102225111.48fe1c76>