From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 25 17:04:28 2022 Received: (at 51466) by debbugs.gnu.org; 25 Jun 2022 21:04:28 +0000 Received: from localhost ([127.0.0.1]:46300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5Cx9-0003vp-Rc for submit@debbugs.gnu.org; Sat, 25 Jun 2022 17:04:28 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:33102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5Cwt-0003vK-Ol for 51466@debbugs.gnu.org; Sat, 25 Jun 2022 17:04:26 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id nZ4A270074UW6Th01Z4A3d; Sat, 25 Jun 2022 23:04:10 +0200 Message-ID: <57148fd1c1991ee6bddc88dbccf4118afeaba10a.camel@telenet.be> Subject: Re: bug#53355: guix shell --check: confusing error message From: Maxime Devos To: bokr@bokr.com Date: Sat, 25 Jun 2022 23:04:10 +0200 In-Reply-To: <20220625200646.GA8075@LionPure> References: <87h79slysd.fsf@gnu.org> <87sft13dyv.fsf@gmail.com> <874k59d802.fsf@gnu.org> <87wnhy2w73.fsf_-_@gmail.com> <878rudzsmv.fsf@gnu.org> <87sfozzglf.fsf_-_@gmail.com> <875ykpdsbd.fsf_-_@gmail.com> <0b1765dfff5401fa06ee25779b7f173230bf4ea4.camel@telenet.be> <87y1xkwur9.fsf_-_@gmail.com> <20220625200646.GA8075@LionPure> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-nqvSomso0639+XeLzv0f" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1656191050; bh=99UoVcw9/L7C0ZFVcHOZ/VZZ2+Fs2Z1xDDFDC0Ty+bc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Vh9hNp7W/QVK+fdj7Lu7JW+B7pvm/bux2hkOT+DIg3vQRu6/0er+kpgxDkv50DEM2 +ozMWDCYylz24zyrz7XiqkDsyVzai8kJFtnwimy9eFqO20BoV5s3L5A6XcDBxPZfXu uQ9KqvUxjcOB/94Pd8Z0hCKCFXRYraImhfuewSqNJF+7sP6WTK3ynLhLl4Oi9iZoXQ yw+FMemBITTtjIz4Lu037PQ4KYtZMju++bht9EMA2WuYP1WNM35Awcd3qFKbpY0pF6 +lVGy8qKf8XafMucJsPdMykNboV7QCgIa7svDo93uUtmz7vFpUNpvrOsxomOlljXgG Bv6zI+FZXhpAg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51466 Cc: Ludovic =?ISO-8859-1?Q?Court=E8s?= , Chris Marusich , 53355@debbugs.gnu.org, 51466@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 (-) --=-nqvSomso0639+XeLzv0f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable bokr@bokr.com schreef op za 25-06-2022 om 22:06 [+0200]: > BTW, IIRC, this can be used to create an invisible file that Invisible files don't have file names, so they cannot be put in the tiny shell script: > + (format > + #f "env >~a || /usr/bin/env >~a || set >~a; \ > +echo GUIX-CHECK-DONE >>~a; exit\n" > + temporary-file temporary-file temporary-file temporary-file)) Also, I just noticed that this tiny shell script isn't quoting anything, so you'll get in trouble if $TMPDIR (or was it $TEMPDIR, whatever) contains " or ' or \ or whatever. So to avoid messy and fragile escaping, I'd recommend to work with file descriptors. Greetings, Maxime. --=-nqvSomso0639+XeLzv0f Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYrd4ShccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7tm/AQD/oGnY+tMcGXiGGhnWuhszC8rr Uc43dKvEAmJNnMdfXAEA2r86MfXxbcfBQ/TwOIkKGxijsfu8P6EfYL7xG1RZFw4= =jqO8 -----END PGP SIGNATURE----- --=-nqvSomso0639+XeLzv0f--