Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iN4kk-0004D7-Hm for mharc-grub-devel@gnu.org; Tue, 22 Oct 2019 20:43:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39058) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iN4kh-0004Cs-UF for grub-devel@gnu.org; Tue, 22 Oct 2019 20:43:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iN4kg-0000vk-FD for grub-devel@gnu.org; Tue, 22 Oct 2019 20:43:51 -0400 Received: from orion.archlinux.org ([2a01:4f8:160:6087::1]:53274) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iN4kf-0000rg-Sa for grub-devel@gnu.org; Tue, 22 Oct 2019 20:43:50 -0400 Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id E4EA2160962D2B for ; Wed, 23 Oct 2019 00:43:33 +0000 (UTC) Received: from [IPv6:2600:1700:57f0:ca20:763a:c795:fcf6:91ea] (unknown [IPv6:2600:1700:57f0:ca20:763a:c795:fcf6:91ea]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: eschwartz) by orion.archlinux.org (Postfix) with ESMTPSA id 8E31C160962D2A for ; Wed, 23 Oct 2019 00:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1571791413; bh=HHvHeJkWP1YLuagQmcLLEDHsVcCsqHhq+/zpZzxdK8o=; h=Subject:To:References:From:Date:In-Reply-To; b=NYvXg8OHMaupBaXrZ64QvKQU008BFdhKiO9PSVP8Win/abmet66aQA80ec+GsXuvH GQ+S9QVNbrkeqf8E2Np58f+3nT+PLsMOTMEB3s/LaU7pUktfq6NmsBkCcDoVW6KXEP K61QgZwpbS5tUELF8cBanojUtZR0YzZ0GJ55UdfBEGsll/RuEL6V5X/tfDC9M6grmD +S648mIF/FZcD3Ffr5vPh6it/wXlflc5RbsxMlreO6BSIbd/iHVG2PBn3gTvLf1rvm QNnQjbHe04t49CqZ0+B5msWTBlxjmAKSKV0GGti+1b1c/jIEbopeLYlS6QEfittfDy ajapJYoAiXRGcISDWwtBiPyWuSmGpTxMB/g/zUnlfzqgRDiSMDksjsg4082G4Tjj8V Q05s3i3caE3Q9JWrSrYN+0JeOdb1jyktb2kiODPM/t5g8fd5rzYEMVsYu80KSGM5N9 4zZKP2YlUt4/W6GGYwkiK46Mki2ri7S/cF8eT47sH8oOnMWDvctskHvdFXrD5K8HqA 0u6y2LvTiVgKv6u7H4tM7dqjAjqf5TmUyCBndLW+po5C+BUMm/0x7hw7mgO4Y3Thr+ gmLYkZ94jhRFhXA9eN/EfQGT5lb5BqcH9yC1xHWdmL0r6B4/sLo2gD4IcxKh6FA+MR DfCIgCdVzh4OoxlCTfEbB+uQ= Subject: Re: [PATCH] grub-mkconfig: use portable 'command -v' to detect installed programs To: grub-devel@gnu.org References: <20191017030306.369509-1-eschwartz@archlinux.org> <20191021150915.f4zqxv6uqrjfj3hs@tomti.i.net-space.pl> From: Eli Schwartz X-Clacks-Overhead: GNU Terry Pratchett Message-ID: Date: Tue, 22 Oct 2019 20:43:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191021150915.f4zqxv6uqrjfj3hs@tomti.i.net-space.pl> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcJ0o2bg7a2U7Gg0yVXedNtnFUhSErOPN" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:4f8:160:6087::1 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Oct 2019 00:43:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HcJ0o2bg7a2U7Gg0yVXedNtnFUhSErOPN Content-Type: multipart/mixed; boundary="lQVOd1x3yPJsvQjyGaEc63u9gctrbgK3b" --lQVOd1x3yPJsvQjyGaEc63u9gctrbgK3b Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: quoted-printable On 10/21/19 11:09 AM, Daniel Kiper wrote: > On Wed, Oct 16, 2019 at 11:03:06PM -0400, Eli Schwartz wrote: >> The 'which' utility is not guaranteed to be installed either, and if i= t >> is, its behavior is not portable either. >> >> Conversely, the 'command -v' shell builtin is required to exist in all= >> POSIX 2008 compliant shells, and is thus guaranteed to work everywhere= =2E >> >> Examples of open-source shells likely to be installed as /bin/sh on >> linux, which implement the 11-year-old standard: >> bash, dash, busybox ash, ksh, mksh, zsh >> >> A side benefit of using the POSIX portable option is that it requires >> neither an external disk executable, nor (because unlike 'which', the >> exit code is reliable) a subshell fork. This therefore represents a mi= ld >> speedup. >=20 > Missing SOB. I can add it in your behalf if this not a problem for you.= > Otherwise Reviewed-by: Daniel Kiper My apologies for the missing Signed-off-by, I did not realize that this project expects to see them and I usually configure that per-repository. You are more than welcome to add it on my behalf, and I hereby confirm my Developer Certificate of Origin --=20 Eli Schwartz Arch Linux Bug Wrangler and Trusted User --lQVOd1x3yPJsvQjyGaEc63u9gctrbgK3b-- --HcJ0o2bg7a2U7Gg0yVXedNtnFUhSErOPN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvSewel70XCra9w4EhIGKaBmvSpsFAl2vojEACgkQhIGKaBmv SpsVQw/+IgwgsT93Ox6LOdvVNB39XmnLCqAN07yKJd1bD/6kCqroEG6v0cSb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