From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 IL6HF2OTuWIacQAAbAwnHQ (envelope-from ) for ; Mon, 27 Jun 2022 13:24:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2CRkF2OTuWL6EAEA9RJhRA (envelope-from ) for ; Mon, 27 Jun 2022 13:24:19 +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 E822544287 for ; Mon, 27 Jun 2022 13:24:18 +0200 (CEST) Received: from localhost ([::1]:54534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5mqo-0006Rn-33 for larch@yhetil.org; Mon, 27 Jun 2022 07:24:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5mqY-0006Or-PE for bug-guix@gnu.org; Mon, 27 Jun 2022 07:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5mqY-0000Eq-Ha for bug-guix@gnu.org; Mon, 27 Jun 2022 07:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5mqY-0007Uc-Bt for bug-guix@gnu.org; Mon, 27 Jun 2022 07:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51466: bug#53355: guix shell --check: confusing error message Resent-From: bokr@bokr.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 27 Jun 2022 11:24: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 53355@debbugs.gnu.org, Chris Marusich , 51466@debbugs.gnu.org Received: via spool by 51466-submit@debbugs.gnu.org id=B51466.165632902128746 (code B ref 51466); Mon, 27 Jun 2022 11:24:02 +0000 Received: (at 51466) by debbugs.gnu.org; 27 Jun 2022 11:23:41 +0000 Received: from localhost ([127.0.0.1]:50021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5mqC-0007TY-H9 for submit@debbugs.gnu.org; Mon, 27 Jun 2022 07:23:40 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:51470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5mq9-0007TG-BZ; Mon, 27 Jun 2022 07:23:39 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id C3322617F3; Mon, 27 Jun 2022 11:23:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1656329011; bh=2/ini8Wdnm0VslQRDrPAQUWaHw/7dmJFDaBlvZ0TiJI=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=NvemD664c1mOgVblYZygteeuJKA+pKSm6c5qh0Ohjtt91PPF6w5z5hrIAzcxzp78l wVj8XTiMrNffpmCQfz2iURp+HudXtjNv+se4qn4qxXEXF4DxleBYDS5Fb27jwJ8UDk UbFnDDfe6UsXuIpXa2jnNRkO8WGpkAftbZL/QPcrWW8FuO1vQX8FWbGm8eSB4d3OYf I9OQFyp007DLQiMiVvfgWy1yVD5FINCs2Uaz0F2FCFT4GaoRUeq6EC5C3WmvU0Wv0M 61U7Ge39qewlTMc/SSuAwVQgPg+BrZGjG2w+a6mo5ZOlwHYd0EOOpJCUVGjvNJ2cAr uHb96xoqppnKg== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w-HDYqF8gViy; Mon, 27 Jun 2022 11:23:31 +0000 (UTC) Received: from localhost (m90-129-205-252.cust.tele2.se [90.129.205.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id DAE0A61763; Mon, 27 Jun 2022 11:23:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1656329011; bh=2/ini8Wdnm0VslQRDrPAQUWaHw/7dmJFDaBlvZ0TiJI=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=NvemD664c1mOgVblYZygteeuJKA+pKSm6c5qh0Ohjtt91PPF6w5z5hrIAzcxzp78l wVj8XTiMrNffpmCQfz2iURp+HudXtjNv+se4qn4qxXEXF4DxleBYDS5Fb27jwJ8UDk UbFnDDfe6UsXuIpXa2jnNRkO8WGpkAftbZL/QPcrWW8FuO1vQX8FWbGm8eSB4d3OYf I9OQFyp007DLQiMiVvfgWy1yVD5FINCs2Uaz0F2FCFT4GaoRUeq6EC5C3WmvU0Wv0M 61U7Ge39qewlTMc/SSuAwVQgPg+BrZGjG2w+a6mo5ZOlwHYd0EOOpJCUVGjvNJ2cAr uHb96xoqppnKg== From: bokr@bokr.com Date: Mon, 27 Jun 2022 13:23:15 +0200 Message-ID: <20220627112315.GA7679@LionPure> References: <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> <87mtdyif6j.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87mtdyif6j.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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=1656329059; 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: 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=MePlLVwrACetaJnsDrq/fed0LJXv0S4uYptN8KpJQ/A=; b=Hu5hyZaDIBgU4MA30VqdjoHxYzTbiXJsCS6W1vHNYPOIolNinYdcOngHyKBTkpImORhnBl yra7foA83oZSsrbizjiN2YfOKgtMlCPQJQpw8GuWDZbbaXRShx8P7eO/9q6AKQ9y7MUmG2 pK2w8bqUh4qvun6vftmt+xOG3H0f0BoAZN+GOLeLQcCJknPK16c/rqxCzm+RZm5cywL5V4 7iVSa4edoR6ArIRoJNEn5Q+m/1MRQJqVjnxLuwbDkq/TYpSlu8tZ95bReYwNBrGkuU94jC l45V4H60Vn/Obxu+QorWb2MbXQWr1cwX4q6X4JHwUH/2Ai+7JRkiBezjG9FoZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656329059; a=rsa-sha256; cv=none; b=Nu6rfVrSKTNVBPQktOtfuVa2oOaTNiksDAbZHO0vR29hlV5TWI902Gfbf4cLFSMAqrUxB0 INcT6iKutER3RDYAcj88kaSqOI3MJf4dluixThCqM3cVZV/at5qT3t4iVt4R3laCalcmwF qGQeTmEFRRi9pnk8DXOdKJ8CebRfrBrjRqoOyXb48aHI8qn8/4la0QM2qA6o/nlBWJ+XHw JZ1jubiVDcUhwLIvz/7CnNWfTdkWryyj5BXG0hz//N8d0k1FlIHZpjFTfOGEld8i827N7q ZVMexTfDixPBIiMiTuttZ1h2ofTHNKQ0w6U7+jXOiiHyt1lEiC0qj5H9sfEF+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=NvemD664; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=NvemD664; dmarc=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: 1.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=NvemD664; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=NvemD664; dmarc=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: E822544287 X-Spam-Score: 1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0HLp/equ+XYd On +2022-06-27 12:17:08 +0200, Ludovic Courtès wrote: > Hi Chris, > > Chris Marusich skribis: > > > It turns out that it is probably not OK to rely on shell redirection in > > this case, after all. For example, "dash does not support multi-digit > > file descriptors": > > > > https://bugs.launchpad.net/ubuntu/+source/dash/+bug/249620 > > Bah. :-/ > > [...] > > > To resolve this, I changed the code so that it just writes to a > > temporary file. This is simple and more robust. With the attached > > patch, I was able to use a command like the one above to verify that > > "guix environment --check" works correctly for Guix-built bash, dash, > > ksh, fish, zsh, and ash. I also verified that it works for Fedora's > > /bin/sh and /bin/bash. > > > > What do you think of this file-based approach? Supporting many > > different shells is pretty tricky, but I think this patch does a good > > enough job. > > Like Maxime, I’d rather not create a temporary file. > > I agree that Dash should be fixed, but in the meantime, we still want > our stuff to work with the broken Dash (it’s the default on > Debian/Ubuntu, isn’t it?). > > I don’t have a better idea to offer though… > > Ludo’. > > > If this is all about capturing an environment as text, how about --8<---------------cut here---------------start------------->8--- xargs -0 < /proc/$$/environ --8<---------------cut here---------------end--------------->8--- (not limited to $$ I would think) -- Regards, Bengt Richter