From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EMy2JuaOyWHBHAAAgWs5BA (envelope-from ) for ; Mon, 27 Dec 2021 11:01:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OFCkI+aOyWE6gwEAauVa8A (envelope-from ) for ; Mon, 27 Dec 2021 11:01:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 77C48D067 for ; Mon, 27 Dec 2021 11:01:10 +0100 (CET) Received: from localhost ([::1]:37080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1moX-0001NX-N9 for larch@yhetil.org; Mon, 27 Dec 2021 05:01:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1moQ-0001NJ-JL for guix-patches@gnu.org; Mon, 27 Dec 2021 05:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1moQ-0000jE-9z for guix-patches@gnu.org; Mon, 27 Dec 2021 05:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1moP-0006Zd-OE for guix-patches@gnu.org; Mon, 27 Dec 2021 05:01:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49934] Hw-Probe Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 10:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49934 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Raghav Gururajan Cc: Ricardo Wurmus , 49934@debbugs.gnu.org Received: via spool by 49934-submit@debbugs.gnu.org id=B49934.164059922125199 (code B ref 49934); Mon, 27 Dec 2021 10:01:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Authentication-Results: aspmx1.migadu.com; none X-Migadu-Scanner: scn1.migadu.com X-TUID: H4HoOAKHo1Rd --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--