From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SHL2EqtJt2IYLwEAbAwnHQ (envelope-from ) for ; Sat, 25 Jun 2022 19:45:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GCPGEqtJt2IatgAAauVa8A (envelope-from ) for ; Sat, 25 Jun 2022 19:45:15 +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 E41FF10546 for ; Sat, 25 Jun 2022 19:45:14 +0200 (CEST) Received: from localhost ([::1]:42484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o59qI-0000wA-Bb for larch@yhetil.org; Sat, 25 Jun 2022 13:45:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o59mJ-0005Bb-Em for bug-guix@gnu.org; Sat, 25 Jun 2022 13:41:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o59mJ-0008Mx-0L for bug-guix@gnu.org; Sat, 25 Jun 2022 13:41:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o59mI-0007KK-TG for bug-guix@gnu.org; Sat, 25 Jun 2022 13:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: 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 17:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53355 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: Chris Marusich Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 53355@debbugs.gnu.org, 51466@debbugs.gnu.org Received: via spool by 53355-submit@debbugs.gnu.org id=B53355.165617885928141 (code B ref 53355); Sat, 25 Jun 2022 17:41:02 +0000 Received: (at 53355) by debbugs.gnu.org; 25 Jun 2022 17:40:59 +0000 Received: from localhost ([127.0.0.1]:46174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o59mF-0007Jk-7N for submit@debbugs.gnu.org; Sat, 25 Jun 2022 13:40:59 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:37728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o59mB-0007JQ-BF for 53355@debbugs.gnu.org; Sat, 25 Jun 2022 13:40:57 -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 nVgt270014UW6Th01Vgtfn; Sat, 25 Jun 2022 19:40:53 +0200 Message-ID: From: Maxime Devos Date: Sat, 25 Jun 2022 19:40:48 +0200 In-Reply-To: <87y1xkwur9.fsf_-_@gmail.com> References: <87h7a08kub.fsf@gmail.com> <87lez5td4n.fsf@gnu.org> <87sftc4osu.fsf@gmail.com> <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> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-epwf12yb5OHm2trL6Zzw" 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=1656178853; bh=cc4Ozochtqf6Xz4T8OyoLWfXAjcI/NkjhU0ym/asoLo=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Ao9rYc3LhK8e0KIuzgIO5bd4oziNQD2Pr2TGUBbuPR0/9FS/sQUyJg2Ots2UpWinn OlQjYQuG73CrR57YFBy7I7UcDyH2s2xOzjYbO9Tt8tyaWsea7OvjRq+ZNDsAmJMUeY IUClGZ8vDP3LwowQY60Ucc5b0ViwFMIE3e0Iu7Cc97NTQ39JLO2bySErv/EFN9D3NL hD3MxxsS/AIcMRQ+jw4TXI84g8nMdKuEHaMcLgwrq9ToqeoHYDmMtU20ZcnW7Jn8gT Ko075TZoxM6jvyrunv9p9GikfHSqVraceGmusCf2RW0iANwARtCW8z7U7bmoaB9Wns fvb7HSXnGB3Tw== 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=1656179115; 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=cc4Ozochtqf6Xz4T8OyoLWfXAjcI/NkjhU0ym/asoLo=; b=inRYz1sux4xGf8kiI64YyOsQaY1Ge8pT01y6VlSabR3HlZTHZlW0kobo0fwkoxtniEBaaT YoupQk08NEOq7pzfsn6cxg2IXBiyna0srCEHq4ZQX4GXbQTAbYrpP+YLv/Jpii/UbEKs1z RDPUymMzCIE2kOXUGgQi10CeaSgBiAvwoWtJ+LOkBM1R49REVHxENrADk/qm5dsqh4ozKU DZv2dRLepOTq3W5Wg8TgUVQMMlwb3+yhrrRRMJ6Rre8WNqCZU4LaPzpgkku4EEO6piSGMy wuo3k60tiIZnySPSR0ridl3hvDjj3lzOW8FsK+kG0v4LsHOzuWJ/O6AG9DyJOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656179115; a=rsa-sha256; cv=none; b=TEl/cdjae7Q/8C9TQhmXqoAVfYSs5PWu3TCllQMlqj9SWsGqiVcFqvRYlRaE4Ca+PMiW8d pLl5/Qz+FYg2KMZ+s992QBkDVmAMPpkjb1NgSXRhuch6wT+ODkC5iTJ8HMAkzrJrBmAuSp hsbYprKUxDuY6d3cEZYMjC5uOwVo947RidHOwKN6BzgIEsI36P10LLlQLXa7x79X2dfylc yDqAjkwJ2pq4jgJlcIc5kYL39ZBjp/DX26JkX5Fqeu0GlLjiunXQ5cS+QMbzHPB5b1LvM4 5Po+2G9bZNPAO2HGXXnu9ctG0657scWmx4RaZEciKDafl4PNVkDKs4Iq+Kpw3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Ao9rYc3L; 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=Ao9rYc3L; 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: E41FF10546 X-Spam-Score: 5.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: iCXgjmjZPhUD --=-epwf12yb5OHm2trL6Zzw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Chris Marusich schreef op za 25-06-2022 om 09:52 [-0700]: > Yes, I agree those are good reasons to avoid a temporary file if we > can. > To that end, do you know if we can somehow force Guile to use a > specific > file descriptor for the pipe?=C2=A0 In the patch I wrote earlier, which > uses > redirection, the problem was that I could not control Guile's choice > of > file descriptors.=C2=A0 Guile chose file descriptor 19 for one end of the > pipe, and I don't know how to make it use anything else.=C2=A0 If we can > arrange for Guile to consistently use file descriptor 7, for example, > then probably it would work in all the shell I've tested. >=20 > I wonder if maybe I can just duplicate the file descriptor?=C2=A0 I don't > know; if for example Guile reserves all the file descriptors below 10 > for other uses, it might be hard. >=20 Have a look at =E2=80=98(guile)Ports and File Descriptors=E2=80=99. It has= lots of procedures for duplicating and renumbering. That's fragile though, you might accidentally overwrite an fd that's being used for something else. (Normally move->fdes would prevent overwriting things by moving pre- existing fds out of the way, adjusting ports automatically, but move- >fdes doesn't know (yet) about the pipe that Guile uses for finalisation, see maybe: ) I think it would be best to patch the dash appropriately (though fixing move->fdes would be nice too). Greetings, Maximee. --=-epwf12yb5OHm2trL6Zzw 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+4iGRcl7gUCYrdIoBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vQAAPsF2xA7luLZF2c5ndGS+TZax0PZ bD4L7+9G3f+/kTmeVgD/csEhB34Sh/+JlOiN2WpLjGUFu8O/J/+ZNVhW6+ZSvAk= =z7BE -----END PGP SIGNATURE----- --=-epwf12yb5OHm2trL6Zzw--