From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 25 13:40:59 2022 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: Subject: Re: bug#53355: guix shell --check: confusing error message From: Maxime Devos To: Chris Marusich 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53355 Cc: Ludovic =?ISO-8859-1?Q?Court=E8s?= , 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 (-) --=-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--