From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 68B35158498 for ; Wed, 22 May 2024 01:12:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09A75E2A38; Wed, 22 May 2024 01:12:28 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE233E2A36 for ; Wed, 22 May 2024 01:12:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3668133BEA5 for ; Wed, 22 May 2024 01:12:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6A8E51B08 for ; Wed, 22 May 2024 01:12:24 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1716295916.b68b40c719d66641a1a0d23b912523ab72d52277.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: functions.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b68b40c719d66641a1a0d23b912523ab72d52277 X-VCS-Branch: master Date: Wed, 22 May 2024 01:12:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f4c34d7-7af1-4269-b74f-cc724990eca6 X-Archives-Hash: 0ad13a48523df3a8c152d26883941684 commit: b68b40c719d66641a1a0d23b912523ab72d52277 Author: Kerin Millar plushkava net> AuthorDate: Tue May 21 12:46:17 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 21 12:51:56 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=b68b40c7 Explain why is_older_than() checks for the presence of gfind Signed-off-by: Kerin Millar plushkava.net> functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 8c0d1c1..98e7a6f 100644 --- a/functions.sh +++ b/functions.sh @@ -387,7 +387,9 @@ is_older_than() fi shift - # Consult the hash table in the present shell, prior to forking. + # Check whether GNU find is installed by the name of "gfind". So as to avoid + # repeated PATH lookups, run the hash builtin in the present shell, prior to + # forking. hash gfind 2>/dev/null; has_gfind=$(( $? == 0 )) for path; do