From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cH7SKiY2uGJdaAAAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 12:34:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QBXWKSY2uGIH7QAAG6o9tA (envelope-from ) for ; Sun, 26 Jun 2022 12:34:14 +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 45F2418F01 for ; Sun, 26 Jun 2022 12:34:14 +0200 (CEST) Received: from localhost ([::1]:54914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5Pan-0006Jd-42 for larch@yhetil.org; Sun, 26 Jun 2022 06:34:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Pac-0006H6-L7 for bug-guix@gnu.org; Sun, 26 Jun 2022 06:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5Pac-0005Q0-CQ for bug-guix@gnu.org; Sun, 26 Jun 2022 06:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5Pac-00013c-AM for bug-guix@gnu.org; Sun, 26 Jun 2022 06:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51466: bug#53355: guix shell --check: confusing error message Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Jun 2022 10:34:02 +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: Maxime Devos , Chris Marusich Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 53355@debbugs.gnu.org, 51466@debbugs.gnu.org Received: via spool by 51466-submit@debbugs.gnu.org id=B51466.16562396234020 (code B ref 51466); Sun, 26 Jun 2022 10:34:02 +0000 Received: (at 51466) by debbugs.gnu.org; 26 Jun 2022 10:33:43 +0000 Received: from localhost ([127.0.0.1]:46785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5PaJ-00012k-4x for submit@debbugs.gnu.org; Sun, 26 Jun 2022 06:33:43 -0400 Received: from jpoiret.xyz ([206.189.101.64]:48442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5PaH-00012Z-JS; Sun, 26 Jun 2022 06:33:42 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 16A681851E0; Sun, 26 Jun 2022 10:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1656239619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u8l/DZvu/jBeU7R+ss5Z8c6/BQAPpQApgf9LyoI4y4Y=; b=P5fvHoym+Oa57HTi7L2wVIVHGHypTogiQR5dBAk08+AYR24hOAdOb0k48/KV7uEGgOyEIK ssfcZekH5M5+1l25qhDbOC2daRN1lZFk2srzCvmcP9jg76niLlaVXgHurwNNEglUuK72ij ZmL5bGWtsy+X/y1He4a8QbwsD7tT6CAUqJcYg1XpAmc3Jwb40taExadvjMYie6GwY76fjn 69YoZkdS53fzU1gbh9JNOoHCv90HPWHFFUyPnwJl/1X5EvHk0fLHfX5lmJnF+WNg6VMigR 5OSEangSkuv/SGIcb2UGnazkt8H3ZHfVM7gJN8m1+9Vr2dglojYo6J36j2PybQ== In-Reply-To: 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> Date: Sun, 26 Jun 2022 12:33:37 +0200 Message-ID: <87zghzsohq.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / 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" Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU 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=1656239654; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=u8l/DZvu/jBeU7R+ss5Z8c6/BQAPpQApgf9LyoI4y4Y=; b=DpfChp0XgjKL2DaDtjdLoTNUFi5l2gA9BxpQxKjTWVzS2toKNPHmrP6hrg0o1SvFuNMftV 7hxHZ+8pNozTNy3vKud1X/Y04+XK5whkFzvILJ9UMIRSPKrcUUbw/URHPXnM7McttSaI4a vV8Sy1ItsAuwDeuEvBzwPlRpbTCy6i7PqBDMi9urnwp93FnLANuqz5w3ALcGYPv3MW0U7+ zDNSpMBend3C2PWFNUqvj7ZfgS71KO8x5OLT8L6i529DJAzH0BQoepHoijdlrXk8hSseux KNsXuPAaPdufd30MsegbxAMSeiCr+u5Qnrleg8WsZbsUH1MwOo3ZcqG4jvaj5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656239654; a=rsa-sha256; cv=none; b=tSlPAY1g1RyI+VWiV83I+jc6KBhOJ9Mwq8TmllHje56C1UIDziJcIsFdTz+wFawGDAmt7t IXT3/PlNB0S3c9dQozK8qdH2KaiWpeR0zmSSQiI6c3QoXyY+p7KA86mbLilnX9jx0qKqaV r1s8qEwDqR8/lJaKFuwSE0ygJFh+Mqd2VJgUhaJIm8lO6kFtHNu+LYb6PyS9skmqBd60Qt dk+90GOVd0UXsXRlxtpslK4qwaurzMHJIaBzo9uJjUeoqbZcfLpgWT66FFxFNyyVtC101V gwUWw3Zfwzlj7U8SbALq2hQMoWUNGUPznVay3Xu+5xuELWe6E76HQycWuUwa6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=P5fvHoym; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=P5fvHoym; dmarc=pass (policy=none) header.from=gnu.org; 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: 45F2418F01 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: Tem+Kz3yT+vx Hello everyone,=20 Maxime Devos writes: > Chris Marusich schreef op za 25-06-2022 om 09:52 [-0700]: >> [...] >> 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. > Have a look at =E2=80=98(guile)Ports and File Descriptors=E2=80=99. It h= as lots of > procedures for duplicating and renumbering. That's fragile though, you > might accidentally overwrite an fd that's being used for something > else. Just my 2=C2=A2, from my experience, Guile uses a lot of fds (`guile -q` us= es 15). I'm not sure it would be safe or advisable to move fds, since we cannot be sure that they're backing ports or not, and if they're not it would break things. In general, the Guile ports/fds interface works ok, but there is a lot of code that is fragile and doesn't handle edge-cases. Best, --=20 Josselin Poiret