From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WIaKKFhAF2NTgAEAbAwnHQ (envelope-from ) for ; Tue, 06 Sep 2022 14:43:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qKpmKFhAF2OqaQEAauVa8A (envelope-from ) for ; Tue, 06 Sep 2022 14:43:04 +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 51EB02AABF for ; Tue, 6 Sep 2022 14:43:04 +0200 (CEST) Received: from localhost ([::1]:41596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVXux-0001fJ-Gw for larch@yhetil.org; Tue, 06 Sep 2022 08:43:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVWNA-0000Vk-1o for bug-guix@gnu.org; Tue, 06 Sep 2022 07:04:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVWN8-0004y8-Oz for bug-guix@gnu.org; Tue, 06 Sep 2022 07:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVWN8-000670-K9 for bug-guix@gnu.org; Tue, 06 Sep 2022 07:04: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: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Sep 2022 11:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57467 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: "Thompson, David" , 57467@debbugs.gnu.org Received: via spool by 57467-submit@debbugs.gnu.org id=B57467.166246223423469 (code B ref 57467); Tue, 06 Sep 2022 11:04:02 +0000 Received: (at 57467) by debbugs.gnu.org; 6 Sep 2022 11:03:54 +0000 Received: from localhost ([127.0.0.1]:49757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVWMz-00066T-Mz for submit@debbugs.gnu.org; Tue, 06 Sep 2022 07:03:53 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:58830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVWMv-00066H-Rz for 57467@debbugs.gnu.org; Tue, 06 Sep 2022 07:03:52 -0400 Received: from [IPV6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16] ([IPv6:2a02:1811:8c09:9d00:5dba:d409:33f7:a16]) by baptiste.telenet-ops.be with bizsmtp id Gb3n2800420ykKC01b3nDY; Tue, 06 Sep 2022 13:03:48 +0200 Message-ID: <6d3390c8-7942-8c19-9893-8c72c5449d5d@telenet.be> Date: Tue, 6 Sep 2022 13:03:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US References: <871qsq3r83.fsf_-_@gnu.org> <5a8e6b74-f936-2c15-390c-37e23a6365d8@telenet.be> <87pmg90y3u.fsf@gnu.org> From: Maxime Devos In-Reply-To: <87pmg90y3u.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------w9qx4LqJMAQwj00GPi0CZHzz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662462228; bh=8MlogvnE1BWCfkls9TnTN4oR1OOEVf9NTnRox6G71UM=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=T8DQ9TwfuQtnh6BstdDtAaTSqAx6RcGInb0kjzOiQ6E3DZhBc/+y3B2DC5vNSwUgI 5cGArRLzGSS6z5cgISTlXitwP89F0OwI76TM09CbeUFPqiqaDdoGg72AHuBhWYeCFm kzfOWbMXr/9NBGho+Wh2hSHRjsSa6jtuXYd0NnkFTekqK4Mhhoq1UGpjFr78UMJP9d 1QdtBJ30PwkCp5EyTcENSeTz78ostlGRxLbPcUTV7kJ5wY62giKh6Ita4YYYX4Jjjb eDF6BcXRtlOfu2v9t6uutR5rlpCxmPQhMCNwwnqV7F6cMiflxC69088OIrVjvAtwbm tgl1rROF8g15A== 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=1662468184; 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: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=7giw0b+Pneh68B/HImuVnoic5cPtlT7BUJhW7DiT78M=; b=Z4nBklqic24Eq7DhJK/WR9FnoBKiVUJjkOQm4DE40JmE5wzjnHI0DsRGuPv3dSuE1J3nCK RYQ9bEH5aX+8qTlQzCSSer6ljO+QgROvLUCD34KYWiZn1ggl25sEE81H2YTkQQCjHURNms BBdN6/+X/ejMoLeuGQEn2ENc19bUme2BFavGYv2TqOR++Ia48bgFw4QeOLQzhs+p2qoWcH 0rl9ziQ7IbEqKX6lsoQrDWV1hvcvrw8QKItGVhprhbXzoYVJBplv+SCQbHkSWzjBGvcoFZ SNNDD7q5LWlz+6v8C8N7KQ2e7IMzoDtWPpXRJBeOdrJwZoRVtkPKmYJbZh4OJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662468184; a=rsa-sha256; cv=none; b=tGdARqG/93QCdhw6ZkLRQngvXO9CNkl2SYGW/mSfqcLQuqYDbmAtvvgeK+IcLXj46EfnTZ NIZqPiduYM8nZBCLaVhu4a0zXy5mp2aWI9CkGaJxqzSvQmiyu1EusOKzIogOEuwqewNHE3 EhbhJIMBMYvOOTD3meAt9DKVemvCgRTxv6cL1ENIc38coIndgnY94QQaC821bZflUM6lqK U7y1ow9E5sH3bPFRGRd6MS0aXrjMOFeD42fPXDQL2hdndb/ajPb3eXqrpWzw+EcJj1iZQc 0VaGYgs3UbPxBVkZYDpySEeysSd1MGLCBlhkcmy9J6aa/rNrPLGDGbnZ23/0Uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=telenet.be header.s=r22 header.b=T8DQ9Twf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: 4.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=telenet.be header.s=r22 header.b=T8DQ9Twf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: 51EB02AABF X-Spam-Score: 4.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: R0bE9LqIBRID This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------w9qx4LqJMAQwj00GPi0CZHzz Content-Type: multipart/mixed; boundary="------------iO7jnuK9i5efKv5ad6Otn0RN"; protected-headers="v1" From: Maxime Devos To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= Cc: "Thompson, David" , 57467@debbugs.gnu.org Message-ID: <6d3390c8-7942-8c19-9893-8c72c5449d5d@telenet.be> Subject: Re: bug#57467: 'guix shell' does not honor default behavior when given a specific command to run References: <871qsq3r83.fsf_-_@gnu.org> <5a8e6b74-f936-2c15-390c-37e23a6365d8@telenet.be> <87pmg90y3u.fsf@gnu.org> In-Reply-To: <87pmg90y3u.fsf@gnu.org> --------------iO7jnuK9i5efKv5ad6Otn0RN Content-Type: multipart/mixed; boundary="------------uNuvMO134o7JTeAtZZ0w0mtu" --------------uNuvMO134o7JTeAtZZ0w0mtu Content-Type: multipart/alternative; boundary="------------YTnJLwo6G4mKz9NXyb4eJAcU" --------------YTnJLwo6G4mKz9NXyb4eJAcU Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 DQpPbiAwNi0wOS0yMDIyIDA5OjE4LCBMdWRvdmljIENvdXJ0w6hzIHdyb3RlOg0KPj4gImd1 aXggc2hlbGwiIGlzIGZvciBtYWtpbmcgcGFja2FnZXMgYXZhaWxhYmxlIGluIHRoZQ0KPj4g ZW52aXJvbm1lbnQuIEN1cnJlbnRseSwgImd1aXggc2hlbGwgLS0gZm9vYmFyIiBkb2VzIG5v dCBtYWtlIGFueQ0KPj4gcGFja2FnZXMgYXZhaWxhYmxlIC0tIGl0J3MgZWZmZWN0aXZlbHkg YSBuby1vcCBleGNlcHQgZm9yIHNldHRpbmcNCj4+IEdVSVhfRU5WSVJPTk1FTlQuDQo+IFRy dWUsIHRob3VnaCB5b3UgY291bGQgYWx3YXlzIGhhdmUgc2NyaXB0cyB0aGF0IHJlYWQ6DQo+ DQo+ICAgIGd1aXggc2hlbGwgJHBhY2thZ2VzIC0tIHdoYXRldmVyDQo+DQo+IGFuZCB0aGF0 IHdpbGwgc3VkZGVubHkgYmVoYXZlIGRpZmZlcmVudGx5IGlmICRwYWNrYWdlcyBleHBhbmRz IHRvIGFuDQo+IGVtcHR5IHN0cmluZy4gIFRyaWNreSENCg0KUmlnaHQsIEkgZGlkbid0IHRo aW5rIG9mIHN1Y2ggdXNlcy4NCg0KR3JlZXRpbmdzLA0KTWF4aW1lLg0KDQo= --------------YTnJLwo6G4mKz9NXyb4eJAcU Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 06-09-2022 09:18, Ludovic Court=C3=A8= s wrote:
"guix shell" is for making=
 packages available in the
environment. Currently, "guix shell -- foobar" does not make any
packages available -- it's effectively a no-op except for setting
GUIX_ENVIRONMENT.
True, though you could alway=
s have scripts that read:

  guix shell $packages -- whatever

and that will suddenly behave differently if $packages expands to an
empty string.  Tricky!

Right, I didn't think of such uses.

Greetings,
Maxime.

--------------YTnJLwo6G4mKz9NXyb4eJAcU-- --------------uNuvMO134o7JTeAtZZ0w0mtu Content-Type: application/pgp-keys; name="OpenPGP_0x49E3EE22191725EE.asc" Content-Disposition: attachment; filename="OpenPGP_0x49E3EE22191725EE.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEX4ch6BYJKwYBBAHaRw8BAQdANPb/d6MrGnGi5HyvODCkBUJPRjiFQcRU5V+m xvMaAa/NL01heGltZSBEZXZvcyA8bWF4aW1lLmRldm9zQHN0dWRlbnQua3VsZXV2 ZW4uYmU+wpAEExYIADgWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCX4ch6AIbAwUL CQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRBJ4+4iGRcl7japAQC3opZ2KGWzWmRc /gIWSu0AAcfMwyinFEEPa/QhUt2CogD/e2RdF4CYAgaRHJJmZ9WU7piKbLZ7llB4 LzgezVDHggzNJU1heGltZSBEZXZvcyA8bWF4aW1lZGV2b3NAdGVsZW5ldC5iZT7C kAQTFggAOBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJf56ycAhsDBQsJCAcDBRUK CQgLBRYCAwEAAh4BAheAAAoJEEnj7iIZFyXujpQBAKV1SwDDl4f24rXciDlB9L8W ycZt30CgbewMSRQk4mvbAP9dFMbVVixYBd6C8cfhR+NsOBGiOJnQABlUmgNuqGFJ Dc44BF+HIegSCisGAQQBl1UBBQEBB0BOlzIWiJzgobMF6/cqwLaLk7jIcFSZ++c0 k9cCNT6YXwMBCAfCeAQYFggAIBYhBMHzPuIMUo/bfdcBH0nj7iIZFyXuBQJfhyHo AhsMAAoJEEnj7iIZFyXuMr0BAJc8cl5PGvVmVuSQVKjleNl4DK1/XAaPAYPe34AE fZJPAP9IqLCQhH/FeJanHqBP8gNdGNI2qn8RnnLVfRJgUjZ1BA=3D=3D =3DOVqp -----END PGP PUBLIC KEY BLOCK----- --------------uNuvMO134o7JTeAtZZ0w0mtu-- --------------iO7jnuK9i5efKv5ad6Otn0RN-- --------------w9qx4LqJMAQwj00GPi0CZHzz Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYxcpEgUDAAAAAAAKCRBJ4+4iGRcl7oqY AP95ZJhCP3nGS6dAM1ExOQQiYJAKI8tNMXj9dGepGRMrDgEAzjrfJ2VIYQ+y+v47tKJaTkGQR2xj HovxtLTjEZdsQQk= =ki5H -----END PGP SIGNATURE----- --------------w9qx4LqJMAQwj00GPi0CZHzz--