From owner-freebsd-questions@freebsd.org Mon Nov 2 21:16:52 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8256E45AF49 for ; Mon, 2 Nov 2020 21:16:52 +0000 (UTC) (envelope-from 4250.82.1d4c500062c4580.d497582915faddd4f08b026b9d615c11@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CQ5MR0pr3z41tR for ; Mon, 2 Nov 2020 21:16:50 +0000 (UTC) (envelope-from 4250.82.1d4c500062c4580.d497582915faddd4f08b026b9d615c11@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1604351804; x=1606943804; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=+SGKcoXg1QgMCSoTylMAL/esOGen/cFPsXu3UWE/1w8=; b=noBCvIWZMRR2YHXC7jtmfjZQTGm3cF/hS+3hRrXs6RxLHRcJ7RNJB3eA2bELTbgKTYKIFDbsgm8WjHwaJo5HDiFccDtoKsCRPjynz1sOGOSW1v4CwerpgqiZqZD7gVMqYlkSz2t/dvWf1u2m7+9133QmN4yjaGnFfsAg2TNV8XE= X-Thread-Info: NDI1MC45Mi4xZDRjNTAwMDYyYzQ1ODAuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r3.us-east-1.aws.in.socketlabs.com (r3.us-east-1.aws.in.socketlabs.com [142.0.191.3]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 2 Nov 2020 16:16:33 -0500 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r3.us-east-1.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 2 Nov 2020 16:15:55 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.94 (FreeBSD)) (envelope-from ) id 1kZhBu-000Pye-DZ; Mon, 02 Nov 2020 21:16:38 +0000 Date: Mon, 2 Nov 2020 21:16:38 +0000 From: Steve O'Hara-Smith To: Ralf Mardorf Cc: freebsd-questions@freebsd.org Subject: Re: simple shell script to compare two dirs recursively Message-Id: <20201102211638.c756c71b721105cdeb3bd048@sohara.org> In-Reply-To: <20201102200737.27745317@archlinux> References: <34dfc85a-b985-e31f-a6b2-cf14f1f56fd2@nethead.se> <6d734580-55b0-eb70-677c-4270f29a00a9@kicp.uchicago.edu> <20201102200737.27745317@archlinux> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CQ5MR0pr3z41tR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=noBCvIWZ; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.82.1d4c500062c4580.d497582915faddd4f08b026b9d615c11@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.82.1d4c500062c4580.d497582915faddd4f08b026b9d615c11@email-od.com X-Spamd-Result: default: False [-2.04 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; NEURAL_HAM_MEDIUM(-1.02)[-1.019]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; NEURAL_HAM_LONG(-1.00)[-1.004]; RWL_MAILSPIKE_GOOD(0.00)[142.0.176.198:from]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[142.0.176.198:from]; NEURAL_HAM_SHORT(-0.31)[-0.313]; FORGED_SENDER(0.30)[steve@sohara.org,4250.82.1d4c500062c4580.d497582915faddd4f08b026b9d615c11@email-od.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.82.1d4c500062c4580.d497582915faddd4f08b026b9d615c11@email-od.com]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2020 21:16:52 -0000 On Mon, 2 Nov 2020 20:07:37 +0100 Ralf Mardorf wrote: > 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. 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. -- Steve O'Hara-Smith