From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mBuhKD6xXmFP8QAAgWs5BA (envelope-from ) for ; Thu, 07 Oct 2021 10:35:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CKUpJD6xXmHMeAAAbx9fmQ (envelope-from ) for ; Thu, 07 Oct 2021 08:35:10 +0000 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 EB47F2C160 for ; Thu, 7 Oct 2021 10:35:09 +0200 (CEST) Received: from localhost ([::1]:52028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYOrs-00078u-Vd for larch@yhetil.org; Thu, 07 Oct 2021 04:35:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYOrm-00074E-F4 for guix-patches@gnu.org; Thu, 07 Oct 2021 04:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYOrm-0000hT-7J for guix-patches@gnu.org; Thu, 07 Oct 2021 04:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYOrm-0006jW-4q for guix-patches@gnu.org; Thu, 07 Oct 2021 04:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Oct 2021 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50960 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Konrad Hinsen Cc: 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163359567725838 (code B ref 50960); Thu, 07 Oct 2021 08:35:02 +0000 Received: (at 50960) by debbugs.gnu.org; 7 Oct 2021 08:34:37 +0000 Received: from localhost ([127.0.0.1]:45967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYOrN-0006if-EY for submit@debbugs.gnu.org; Thu, 07 Oct 2021 04:34:37 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:32868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYOrL-0006iO-Gu for 50960@debbugs.gnu.org; Thu, 07 Oct 2021 04:34:36 -0400 IronPort-HdrOrdr: A9a23:Lr58J6x7Tng+9gDbkc2GKrPwob1zdoMgy1knxilNYDRPeM2ZiMyi2NwHvCWEwQr4WBkb9uxoS5PwJU80lKQFhLX5Uo3DYODZghrUEGgP1+XfK9OJIVyJygZyvZ0QAJSWIueAfWSTFa3BkX6F++9J+qjyzEhD7d2uvUuFNDsaHp2IjD0JaDpzcHcWeOAcP+tEZeWhD6N8zlLKExkqh6KAdwE4tsf41qP2ffndEGc77nAchDVmwQnYi4ITRHOjr3Ejuw0k+8ZYzYGTqX2f2k2p2cvLsCP05ivV6dBfg9HhysRObfb8+/QoFg== X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="532557243" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 10:34:25 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211002102116.27726-1-ludo@gnu.org> Date: Thu, 07 Oct 2021 10:34:24 +0200 In-Reply-To: (Konrad Hinsen's message of "Wed, 06 Oct 2021 10:12:10 +0200") Message-ID: <87mtnlfd2n.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633595710; 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; bh=VjFfbfhtL+XG7eGqiDOVMMTmuzqKMYAbaOKXMKgzyKg=; b=Ys6CBNONHOXeY6pEFfjmbDv+9XO67oI8160axK4XYuZKgYJm/AVCQs8nXqNvTj4bAFtQzA dGf0lHjcjeyQOjU285/ue4KZJ2r4hJ58BAiJLPFg0otV1GtNwzglZxqJZLqV+uxlmqKVTl RAR0E3N0lNDKT6+Ih+guxERG6efn7zJH/50bJwrxpFLHnMu2TkrCKOGJOK8wVpAjSTv4Tq FKzK6xF0l+qdiO8X2XHNYlzDSLzXbjiGI5zE9RDLLwYo3vHnjgVevHPBbkXJ8x9tnqqwGX FvZr2dlZNufx2hFkQ2zh+T1KglEuXhc255WkQA8CKtn49ZpwiINOF1FXjRTsaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633595710; a=rsa-sha256; cv=none; b=duVxEX6/zEeD4Gkaic0ddotFGXjmlbpmhRT6yWefMOZNj0skBEf1R971oDfcNMCbWRk/tP oKtq+2xkB+cLAtaTfNdYc/rm0HAUiyDsGUwU05hIqYPXBTawvqFkgLtijPAcqrFJkHjMDf 8Bx4mFC01GoyoHtiuCDnyxmC9JJmJcIEvl/BUOYRAlg3+/GLXoMPYs+T1nFhTmSzUOIEWN vFUVCmJXpyVpKVn5oWp2HROjMiKB3mi1QlitFEq+OA7BJg4sTwdHVTTn3Mq3SNZrU0Y9Cw 1FaKzEi2pvjPZmfkwSYBmzIzZNlczg8UIkKyGpyTc3w88m3v67VJIP6TWDiVyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EB47F2C160 X-Spam-Score: -0.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: Yzdkr2I0uiHH Hi Konrad, Konrad Hinsen skribis: > Looking at the proposal and then the discussion, I wonder if the main > issue with "guix shell" is that it's two very different things wrapped > into one: > > 1) A convenience utility for interactive work, in particular software > development, implemented as "guix shell" with no arguments. > > 2) A modernized "guix environment" for both interactive and scripting > use. To me it=E2=80=99s the same as =E2=80=98guix environment=E2=80=99, but with= a slightly different command-line interface; =E2=80=98guix environment=E2=80=99 was already serv= es these two use cases. > The behavior of "guix shell" with and without arguments is sufficiently > different, which will make it a challenge to document, and then a > challenge for users to understand. And part of the criticism related to > the tacit execution of files is about the convenience for 1) vs. the > risk in 2). =E2=80=98guix shell=E2=80=99 without arguments is equivalent to =E2=80=98gu= ix environment -f guix.scm=E2=80=99 or =E2=80=98guix environment -m manifest.scm=E2=80=99. > So... how about making this two different commands? They could of course > share most of the implementation. > > I'd use "guix shell" for the scenario that actually starts a shell, and > something different, perhaps "guix process", for the infrastructure > command for use in scripts. I don=E2=80=99t think there=E2=80=99s enough to warrant two different comma= nds (and perhaps we could leave out the auto-detection of =E2=80=98guix.scm=E2=80=99= or =E2=80=98manifest.scm=E2=80=99 is that proves to be too controversial). Maybe you=E2=80=99re hinting at the name and the fact that it suggests it= =E2=80=99s starting a shell. I=E2=80=99m not fond of it, notably for that reason. Fo= r the record, it came out as the only proposal that seemed viable to me: https://issues.guix.gnu.org/38529#17 Thoughts? Thanks for your feedback, Ludo=E2=80=99.