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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D631D15ACFC for ; Tue, 25 Apr 2023 03:43:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E888CE096A; Tue, 25 Apr 2023 03:43:04 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CD527E096A for ; Tue, 25 Apr 2023 03:43:04 +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 AD306340F25 for ; Tue, 25 Apr 2023 03:43:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E96B9A49 for ; Tue, 25 Apr 2023 03:43:01 +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: <1682394172.8a94952d5f7208e6fd75e4eef6c937c58bc8775e.sam@gentoo> Subject: [gentoo-commits] proj/build-docbook-catalog:master commit in: / X-VCS-Repository: proj/build-docbook-catalog X-VCS-Files: build-docbook-catalog X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8a94952d5f7208e6fd75e4eef6c937c58bc8775e X-VCS-Branch: master Date: Tue, 25 Apr 2023 03:43:01 +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: aca78ade-0c48-4127-be55-54b7a2ab9b6e X-Archives-Hash: 993eab6f2730447f72ed6d5d6abdf83b commit: 8a94952d5f7208e6fd75e4eef6c937c58bc8775e Author: Raul E Rangel chromium org> AuthorDate: Tue Apr 4 22:13:57 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Apr 25 03:42:52 2023 +0000 URL: https://gitweb.gentoo.org/proj/build-docbook-catalog.git/commit/?id=8a94952d Fix noisy find command We weren't using nullglob, so the wildcard parameter was incorrectly getting passed to `find`. + pushd /build/arm64-generic//usr/share/sgml/docbook + mapfile -d '' DTDS ++ find xml-dtd-4.3/ xml-dtd-4.5/ -name docbookx.dtd -print0 + mapfile -d '' SIMPLE_DTDS ++ find 'xml-simple-dtd-*/' -name sdocbook.dtd -print0 find: ‘xml-simple-dtd-*/’: No such file or directory + popd Signed-off-by: Raul E Rangel chromium.org> Closes: https://github.com/gentoo/build-docbook-catalog/pull/1 Signed-off-by: Sam James gentoo.org> build-docbook-catalog | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-docbook-catalog b/build-docbook-catalog index 2275703..f5995da 100755 --- a/build-docbook-catalog +++ b/build-docbook-catalog @@ -137,8 +137,10 @@ set_dtds() { local d=${ROOT}${DOCBOOKDIR} if [[ -d ${d} ]] ; then pushd "${d}" >/dev/null || return 1 - mapfile -d $'\0' DTDS < <(find xml-dtd-*/ -name docbookx.dtd -print0) - mapfile -d $'\0' SIMPLE_DTDS < <(find xml-simple-dtd-*/ -name sdocbook.dtd -print0) + shopt -s nullglob + DTDS=( xml-dtd-*/docbookx.dtd ) + SIMPLE_DTDS=( xml-simple-dtd-*/sdocbook.dtd ) + shopt -u nullglob popd >/dev/null || return 1 fi