From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 27 05:00:21 2021 Received: (at 49934) by debbugs.gnu.org; 27 Dec 2021 10:00:21 +0000 Received: from localhost ([127.0.0.1]:42201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1mnl-0006YN-9B for submit@debbugs.gnu.org; Mon, 27 Dec 2021 05:00:21 -0500 Received: from flashner.co.il ([178.62.234.194]:56906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1mnf-0006Xt-RP for 49934@debbugs.gnu.org; Mon, 27 Dec 2021 05:00:19 -0500 Received: from localhost (unknown [141.226.10.247]) by flashner.co.il (Postfix) with ESMTPSA id 6FC30402D2; Mon, 27 Dec 2021 10:00:09 +0000 (UTC) Date: Mon, 27 Dec 2021 11:59:37 +0200 From: Efraim Flashner To: Raghav Gururajan Subject: Re: Hw-Probe Message-ID: Mail-Followup-To: Efraim Flashner , Raghav Gururajan , Ricardo Wurmus , 49934@debbugs.gnu.org References: <87bl1hks0w.fsf@elephly.net> <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SiSniCZiWlD6GI7J" Content-Disposition: inline In-Reply-To: <314e6ff0-aae0-1af8-cb85-f74b222c6228@raghavgururajan.name> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49934 Cc: Ricardo Wurmus , 49934@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --SiSniCZiWlD6GI7J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 25, 2021 at 04:17:32PM -0500, Raghav Gururajan via Guix-patches= via wrote: > Hi Ricardo! >=20 > > --8<---------------cut here---------------start------------->8--- > > (substitute* "hw-probe.pl" > > (("Cmd\\(\"([^\"]+)" _ command) > > (string-append "Cmd(\"" (which command)))) > > --8<---------------cut here---------------end--------------->8--- >=20 > Thanks for the snippet and explanation. >=20 > I am wondering these, > [1] Does require import of specific modules? > [2] If `(which command)`'s output is empty, will it return #f? For 2, looks like yes (ins)efraim@3900XT ~$ which -a svn which: no svn in (/home/efraim/Applications/.bin:/gnu/store/4iyar3w7k30b5j1= 3v9cf5gmiz5livkyj-enlightenment-0.24.2/bin:/run/setuid-programs:/home/efrai= m/.config/guix/current/bin:/home/efraim/.guix-profile/bin:/home/efraim/.gui= x-profile/sbin:/run/current-system/profile/bin:/run/current-system/profile/= sbin) (ins)efraim@3900XT ~$ guile GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. (ins)scheme@(guile-user)> (use-modules (guix build utils)) (ins)scheme@(guile-user)> (which "svn") $1 =3D #f (ins)scheme@(guile-user)> --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --SiSniCZiWlD6GI7J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmHJjoYACgkQQarn3Mo9 g1GHFxAAwfVKVYCaHBn1NG2pulQXbR2JXEPlBbZRHnud7cQRWVLU/+BFdwK/qpep 8IG7uW6GqZ/UiXHaSC1jxlBOgd68e0VGCKEy9JEsAeQakMaMj8ELyOIwIFaZKd0H FGOa8zjeGS/KXAr31xZnKegOxQlAf791HQ+Lcbcp8QLJf2SYoVG8i9VZxbvZDdyu ZwzP6DftFpoIjyfLhgip1gvPVuvXb5iOZNolvyW3JoXIzSXRW37VS4pPW2m9JmoK 0dWQJS3BTqqL5ZKVRGyJccrQ2EAUlVuYNjbOvxUcosAQQkdbm3lukyhLsxm2SWpu DVaKo/pcC9XynBAX73iOJ+WsocrRX61OC9lx7ggSXsoUQLh5rdvzyjG1VBYw+6b/ TaK+0mJvBVj66qU4Aq1wlWKtT+rHb3pBP+vrlVXWW4F0v+0C5sGN2o29yE5szbHv M/FYpPm8IZQscDhcRgigS8hBdt/AILhrp/wniumsDPlYYImphzU/89qoww8LaLwR CafMPpVR8CH3xo86g960O1FY6BMRw8ST+8Mh2AFLHyT773V9UxXR8OgUxqv1Bgbt hc3MtOa1HzU/MeFEuwlfxZqasFIK4pZ5ynC9dOcUsxNpLCbemuaIFDVT+W5AFMI3 apA4mM9A8y9Pdh3g7lY9EH7tfmWMES+D2yntXxF2jP0B9+4DwfA= =5M6s -----END PGP SIGNATURE----- --SiSniCZiWlD6GI7J--