From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gIkBHZ94t2LrPgEAbAwnHQ (envelope-from ) for ; Sat, 25 Jun 2022 23:05:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IIU0HJ94t2JviQAAG6o9tA (envelope-from ) for ; Sat, 25 Jun 2022 23:05:35 +0200 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 14D4535B4B for ; Sat, 25 Jun 2022 23:05:35 +0200 (CEST) Received: from localhost ([::1]:58594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5CyE-00030i-7v for larch@yhetil.org; Sat, 25 Jun 2022 17:05:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Cxi-00030R-8N for bug-guix@gnu.org; Sat, 25 Jun 2022 17:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5Cxh-00052p-VR for bug-guix@gnu.org; Sat, 25 Jun 2022 17:05:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5Cxh-0003wp-P2 for bug-guix@gnu.org; Sat, 25 Jun 2022 17:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51466: bug#53355: guix shell --check: confusing error message Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 25 Jun 2022 21:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51466 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: bokr@bokr.com Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Chris Marusich , 53355@debbugs.gnu.org, 51466@debbugs.gnu.org Received: via spool by 51466-submit@debbugs.gnu.org id=B51466.165619106815121 (code B ref 51466); Sat, 25 Jun 2022 21:05:01 +0000 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> From: Maxime Devos 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656191135; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=99UoVcw9/L7C0ZFVcHOZ/VZZ2+Fs2Z1xDDFDC0Ty+bc=; b=mgRW4N/kYjxFRyklT/XbvotfyNuDKO5zu46+hJWKdwjRwgudiGq9FGHfG7he/QjO+vXZMW LPwti+7fiDgW4MoLTrvfITV9/LhaqxECiQqSMih38/yZG3Y8JVhItaEhDFONfoKk8QKCBN 2erIQYzSa7hUK70V8cDqXrVeS9We5ODmr1Vi+VpPNKdqRejzS6qE6SKC1dRiYqk+yL+LQH Es8rP09YOgmqBdKwu1wFbYkZHg00sz5dNZ0ahrWQdLz1soH1Ix6KbNjwRjucq0/7qaKXm3 8ppn5F2RV3I7RiANQjbCOQqUOY3bsaDOMfIzB3Ms/Dr8skS7hzgTvkGuk4Wptw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656191135; a=rsa-sha256; cv=none; b=bEsrEZdMiEGam8ikUD65BpfkcOcxbmFObblQS1f+ru1cUxwm8UmTRf8feuriHJ8bNctKBm wmHQ1fa6b8xj4zdJK5uUr6yD77b4DPGMNFqm88OzSPzplD+fXx/Y/6zzohhcIg4FLmGinx QQTHky//sdo/qceDOm12ooFT2kcqRK6f5XlSIn9+EpfvfPdb7vkdzThmOG575W1w2EwrZp nFz1h0XwycRM760i232Ur1nmTHOnTrUDFsX4P/Jg1+cW45xSEAs8DgOdlWqxHolM9U6tsR iANgZ/WrFPvxQJZqToQQIQnd5LP9GweTGqAlP6Gn3s6tDATA40I/LPGLLXJ8aA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Vh9hNp7W; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Vh9hNp7W; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 14D4535B4B X-Spam-Score: 5.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7itz1r1p0Nvy --=-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--