From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 yM+hB4jlC2MAWAAAbAwnHQ (envelope-from ) for ; Mon, 29 Aug 2022 00:00:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QHuXB4jlC2MCkgAAauVa8A (envelope-from ) for ; Mon, 29 Aug 2022 00:00:40 +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 9CB998AAB for ; Mon, 29 Aug 2022 00:00:39 +0200 (CEST) Received: from localhost ([::1]:60978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSQKc-0004KX-R4 for larch@yhetil.org; Sun, 28 Aug 2022 18:00:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSQK2-0004KK-SK for bug-guix@gnu.org; Sun, 28 Aug 2022 18:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSQK2-0006q4-JV for bug-guix@gnu.org; Sun, 28 Aug 2022 18:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSQK2-0007hH-5d for bug-guix@gnu.org; Sun, 28 Aug 2022 18:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57467: 'guix shell' does not honor default behavior when given a specific command to run Resent-From: "Thompson, David" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 28 Aug 2022 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57467 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57467@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166172394929498 (code B ref -1); Sun, 28 Aug 2022 22:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Aug 2022 21:59:09 +0000 Received: from localhost ([127.0.0.1]:59689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSQJB-0007fi-Bb for submit@debbugs.gnu.org; Sun, 28 Aug 2022 17:59:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:42840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSQJA-0007fa-3x for submit@debbugs.gnu.org; Sun, 28 Aug 2022 17:59:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSQJ9-0004D8-TK for bug-guix@gnu.org; Sun, 28 Aug 2022 17:59:07 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:36524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSQJ7-0006j8-Jg for bug-guix@gnu.org; Sun, 28 Aug 2022 17:59:07 -0400 Received: by mail-lf1-x12c.google.com with SMTP id t23so4045196lfr.3 for ; Sun, 28 Aug 2022 14:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=worcester-edu.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=xrkh+AfUFTQ/ssqM2RYWfYVltlnpx/LDtghRHg+sIsM=; b=Kf0kEOQTRzHXeQRSdOG/TDsMWqm/KDsLTjZbIr8ilmZCSFeLgqquPQoTt/OIdqPeSE b02PiuDpyJulKDdtLiM8z0Z/dWNzhV2KAcjVEGh55deqNwPXEfW9Qg6uyza9djGLYqBH bWCikWcg8aR8zPxiXrEvDZ7vLut9rglb5XVQGekUDsyW82k+5M5QxFBM8Wbj6d3uUtTA NhMhKLVsgek7oCQwRtgSohWmR9dy3tZKwsA4f1azzQs2qDsP1xp9rKhlqPVHvNDbFoJH V2kq0a868emJOJoWJ+aW2GZMso0OSshTBhdPqv7qbsG+mmshWvot5neK2/ww0n2ApzNa eGtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=xrkh+AfUFTQ/ssqM2RYWfYVltlnpx/LDtghRHg+sIsM=; b=UfzosBqHdvruyf6aVEjvgmDAv6rfPoOd8JWRgtVIdCVGSCrGh+uFZA0s2YPJ9Acdne ByOuH4w9Wkawn8uGLuMIUBKfiI6az9/wQG6I63ZZFEFf+zku9dDT0YxxxGFvIpUo+oc/ 4OW5KoLBt2qRG87xqhb7By8koqR0YOppisKilG7cidd039RVsLZZoPaFizvTzwkDFgC5 qxp0cwTM3W6/MxbieMsvlQN0QSh7TwFTYyi6aRvImy94cwgfm7FTIOW3LFrE88eYHMSh Sha582rqDs3keqDOcrTOIIyMMDAcUQ3VvPFG5JeQEYO1r67SPMeezdVy29Bjj5xfPGlY h9uA== X-Gm-Message-State: ACgBeo01fVE2WSBQm025RAyymGZa/GKbwLLyNiClY0OA8JYlg0AyEr0P G4SzK6B1mCXEMUm5H7Q/FFBLDkqobZ9isyBdMGq35yOTwRryxy8w X-Google-Smtp-Source: AA6agR4YQyH5G/n1A/MaAbdR0niV+a396hue11tCcs9M5BuVmJAPl4hMnP2l+m45uFWPEkYBjT5jcVc1RcC/OpSVcT4= X-Received: by 2002:a05:6512:3fc:b0:494:663f:c017 with SMTP id n28-20020a05651203fc00b00494663fc017mr1852933lfq.472.1661723943058; Sun, 28 Aug 2022 14:59:03 -0700 (PDT) MIME-Version: 1.0 From: "Thompson, David" Date: Sun, 28 Aug 2022 17:58:52 -0400 Message-ID: Content-Type: multipart/alternative; boundary="00000000000057602d05e75441af" Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=dthompson2@worcester.edu; helo=mail-lf1-x12c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1661724040; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=xrkh+AfUFTQ/ssqM2RYWfYVltlnpx/LDtghRHg+sIsM=; b=rC0oOqFGfhr7/kNA4q69Y6JFIW2mMbX6o0MW2plR4uhY0MTyaWMYhWHNy4vhzico9zubTU rahIhFw9X/v6HOYAYxS5jfeDFtXoj2clzWmDNi4pWpdlOIv+Z4zySJ/Ndkr7P4JbcpiugS 07/Cu7S6cEk6ZDq2AGMiBqgxKgLzPkPKDs6KYEPEKGCQ/ScAYiiYjixxvg0z8cw+fQXYd8 aQUSfJUUm/spoYFW4ZWn60XufEgTrJQ2o3i/dGKhIVwnkI6paKUATQQyczftxNrK+LIPAy osGFu1bmEF2LFawfrUg1kzHXhgqrCZujdOi1rvWVTHmrRr3yz7uLDXI5EqcQPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661724040; a=rsa-sha256; cv=none; b=eaI/aFmwdJgYseGeJeVT+Xx4z7uEnczPBjkso64OnDt+8EBYsgh18fYqAhtgCYtOSfGaFd souJIGNSzgONA/JHuT7X+9symocnPVkz7dTIknphyezglUqdyIbX1jVIgxUGYpNOE9OXGi +EjzHL8w6s3k+WK4qYki0qCEjp9RKf6mvHg4bGO8hCq12iWIOY6W+535zENHbmr7gOmJgu Hrn6a1s57rMCMkPq+i+02y03SSssC8UXdJfDjW94nnwLAJpIcLIz131FyPBoQX8U3h01QL 6ALdXUV9Q0B0zgbClj1y0I0UBm+GLQSTcPDlQp7zCsGH8kj6c9TASOywrZjVLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=worcester-edu.20210112.gappssmtp.com header.s=20210112 header.b=Kf0kEOQT; 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.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=worcester-edu.20210112.gappssmtp.com header.s=20210112 header.b=Kf0kEOQT; 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: 9CB998AAB X-Spam-Score: 1.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: fIv81ny9haNx --00000000000057602d05e75441af Content-Type: text/plain; charset="UTF-8" Hi, When 'guix shell' is run without arguments, there is some convenient default logic applied to check for a manifest.scm or guix.scm file and do the right thing with it. However, using -- to override the default command like 'guix shell -- make' doesn't do the same thing. I expect that it would still automagically apply manifest.scm or guix.scm but just run the specified command instead of spawning a shell. Instead, 'guix shell' outputs this warning letting me know that something isn't right: guix shell: warning: no packages specified; creating an empty environment On one hand: Sure, I *did* pass arguments (though not flags.) On the other hand: I think this is a bad user experience. I doubt I'm alone in expecting the only difference between 'guix shell' and 'guix shell -- make' to be that 'make' is run instead of a shell. I can implement this if there's some indication that such a patch would be acceptable. Thoughts? - Dave --00000000000057602d05e75441af Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

When 'guix shell'= ; is run without arguments, there is some convenient default logic applied = to check for a manifest.scm or guix.scm file and do the right thing with it= . However, using -- to override the default command like 'guix shell --= make' doesn't do the same thing. I expect that it would still auto= magically apply manifest.scm or guix.scm but just run the specified command= instead of spawning a shell.=C2=A0 Instead, 'guix shell' outputs t= his warning letting me know that something isn't right:

<= /div>
=C2=A0=C2=A0=C2=A0 guix shell: warning: no packages specified; cr= eating an empty environment

On one hand: Sure, I *= did* pass arguments (though not flags.) On the other hand: I think this is = a bad user experience. I doubt I'm alone in expecting the only differen= ce between 'guix shell' and 'guix shell -- make' to be that= 'make' is run instead of a shell.=C2=A0 I can implement this if th= ere's some indication that such a patch would be acceptable.
<= div>
Thoughts?

- Dave
--00000000000057602d05e75441af--