From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id 58B81158041 for ; Wed, 11 Jun 2025 03:26:38 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 3C68F340E2B for ; Wed, 11 Jun 2025 03:26:38 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 507631137F0; Wed, 11 Jun 2025 03:26:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id 492921137F0 for ; Wed, 11 Jun 2025 03:26:31 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F08AD33EB78 for ; Wed, 11 Jun 2025 03:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 63E092356 for ; Wed, 11 Jun 2025 03:26:29 +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: <1749612376.7d25d750485b7d71b0ba43a74e429245fcca05a8.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/isolated-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7d25d750485b7d71b0ba43a74e429245fcca05a8 X-VCS-Branch: master Date: Wed, 11 Jun 2025 03:26:29 +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: 31bc1834-def7-43c7-8ff7-d238183f9c01 X-Archives-Hash: 9350bb0b04572b7e1cf4af6775c2e672 commit: 7d25d750485b7d71b0ba43a74e429245fcca05a8 Author: Kerin Millar plushkava net> AuthorDate: Mon Jun 9 10:14:39 2025 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jun 11 03:26:16 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=7d25d750 isolated-functions.sh: better document the behaviour of find0() Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/isolated-functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 874c6c8eea..722d92adb7 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -693,8 +693,10 @@ contains_word() { } # Invoke GNU find(1) in such a way that the paths to be searched are consumed -# as a null-terminated list from STDIN. The positional parameters shall be -# conveyed verbatim and treated as options and/or primaries. +# as a list of one or more null-terminated records from STDIN. The positional +# parameters shall be conveyed verbatim and are guaranteed to be treated as +# options and/or primaries, provided that the version of GNU findutils is 4.9.0 +# or greater. For older versions, no such guarantee is made. find0() { if printf '/\0' | find -files0-from - -maxdepth 0 &>/dev/null; then find0() {