From unknown Tue Jun 17 22:17:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52093: Incorrect argument handling in "guix shell" Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 25 Nov 2021 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52093 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52093@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163782706311749 (code B ref -1); Thu, 25 Nov 2021 07:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2021 07:57:43 +0000 Received: from localhost ([127.0.0.1]:55653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq9dW-00033R-OU for submit@debbugs.gnu.org; Thu, 25 Nov 2021 02:57:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:47454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq9dR-00033F-JP for submit@debbugs.gnu.org; Thu, 25 Nov 2021 02:57:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq9dO-0004ck-NZ for bug-guix@gnu.org; Thu, 25 Nov 2021 02:57:37 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:51397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq9dK-0006vu-LX for bug-guix@gnu.org; Thu, 25 Nov 2021 02:57:33 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CDC8C3200F3F; Thu, 25 Nov 2021 02:57:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 25 Nov 2021 02:57:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=kHRzwszqZgFr4+RlkrP/2zFvwdPZLB9BSgwBVWSgulw=; b=YL5N1iyw 45vo6b+d/YG9L8G9nJvHRVDCS1bplEZsXXOxlgWT2o3mL8S6iEEw5sOUm8/zIMq8 UunXW8pl1aFPDkJC56dd3oiclxIvUExIImBwO5qVV9FWgEqPA1/RG/0edcWCo9iO it1HY20NmqGmNAymGpsI1Wae8v3G5WjmH5tEwzADZCddYlBHrYpKKmg62namkK1v 8uPeXjSgXE9Z+3K7WvFqVU+9dGQ/k9xC/PXL2GVsKKqU6UgQUOgXo0YQti03Dzuz 4QwECKxKldsgwQrf/8RfAMcCpUIoWh0nTjsE63jUUsOggDQffptCCgkozU2UNIYD i4lScZm4omqgtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=kHRzwszqZgFr4+RlkrP/2zFvwdPZL B9BSgwBVWSgulw=; b=jHOk5tuXJ02xmhcNqtP5Yy7CDZn34jUgogjCJxpick4BP PB0MJ+2d/3OGfDoCNh91/lRTLkPt8uKSu/pSb07kwSNJrYb1xsNzoQJ/C3U8jDvz shs8ekf42CTVkFzD47R5Y/KvKOXlaRjeZ6KRYju6tk7Aje7UCQEbDBMTyBKJCWkm kp94CwFL6sP24603SyKCSIxZ/9iY3gpE5PrjDzt0lXc6VCS/YUU69pANnAItyd30 tys8U7fcfToljyvuFDXyinZKiA8khUFFXktT1PHRokR7nM4uzyF680L66Uwj6Olk Vf8OjhPruzcfnmBss2MCchnWbjyo6ek0T9qREvW7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeelgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehmtderredttd dtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgv nhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeetudetleekffeije evkeduudffieeukeeiffehveevffettdehjeefgeeivdfgueenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnse hfrghsthhmrghilhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Nov 2021 02:57:22 -0500 (EST) From: Konrad Hinsen Date: Thu, 25 Nov 2021 08:57:20 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=64.147.123.20; envelope-from=konrad.hinsen@fastmail.net; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain The following session illustrates that the -D option to "guix shell" is erroneously applied to *two* package arguments rather than just one if the first package argument takes the form of a file. The file "empty-package.scm" is attached, it defines an empty package with no inputs. The environment defined by the command below should thus contain only "hello" and "bash", plus the run-time dependencies of "bash". Instead, it contains the build dependencies of "hello". $ guix shell --container -D -f empty-package.scm hello [env]$ cat $GUIX_ENVIRONMENT/manifest ;; This file was automatically generated and is for internal use only. ;; It cannot be passed to the '--manifest' option. ;; Run 'guix package --export-manifest' if you want to export a file ;; suitable for '--manifest'. (manifest (version 3) (packages (("tar" "1.32" "out" "/gnu/store/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32" (propagated-inputs ()) (search-paths ()) (properties)) ("gzip" "1.10" "out" "/gnu/store/ncydgq2znms5n1d2k5yqshhf58nsixwv-gzip-1.10" (propagated-inputs ()) (search-paths ()) (properties)) ("bzip2" "1.0.8" "out" "/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8" (propagated-inputs ()) (search-paths ()) (properties)) ("xz" "5.2.4" "out" "/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4" (propagated-inputs ()) (search-paths ()) (properties)) ("file" "5.38" "out" "/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38" (propagated-inputs ()) (search-paths ()) (properties)) ("diffutils" "3.7" "out" "/gnu/store/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7" (propagated-inputs ()) (search-paths ()) (properties)) ("patch" "2.7.6" "out" "/gnu/store/cd5qf3kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6" (propagated-inputs ()) (search-paths ()) (properties)) ("findutils" "4.7.0" "out" "/gnu/store/hic7snhayfl7m6cpfqqr73nmm19bpqkg-findutils-4.7.0" (propagated-inputs ()) (search-paths ()) (properties)) ("gawk" "5.0.1" "out" "/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1" (propagated-inputs ()) (search-paths ()) (properties)) ("sed" "4.8" "out" "/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8" (propagated-inputs ()) (search-paths ()) (properties)) ("grep" "3.4" "out" "/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4" (propagated-inputs ()) (search-paths ()) (properties)) ("coreutils" "8.32" "out" "/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32" (propagated-inputs ()) (search-paths ()) (properties)) ("make" "4.3" "out" "/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3" (propagated-inputs ()) (search-paths ()) (properties)) ("bash-minimal" "5.0.16" "out" "/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16" (propagated-inputs ()) (search-paths (("BASH_LOADABLES_PATH" ("lib/bash") ":" directory #f))) (properties)) ("ld-wrapper" "0" "out" "/gnu/store/mpa04aq8lblbcviyxywxcsb1zbi0mf39-ld-wrapper-0" (propagated-inputs ()) (search-paths ()) (properties)) ("binutils" "2.34" "out" "/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34" (propagated-inputs ()) (search-paths ()) (properties)) ("gcc" "7.5.0" "out" "/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0" (propagated-inputs ()) (search-paths (("C_INCLUDE_PATH" ("include") ":" directory #f) ("CPLUS_INCLUDE_PATH" ("include/c++" "include") ":" directory #f) ("LIBRARY_PATH" ("lib" "lib64") ":" directory #f))) (properties)) ("glibc" "2.31" "out" "/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31" (propagated-inputs (("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties)))) (search-paths (("GUIX_LOCPATH" ("lib/locale") ":" directory #f))) (properties)) ("glibc" "2.31" "static" "/gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static" (propagated-inputs (("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties)))) (search-paths (("GUIX_LOCPATH" ("lib/locale") ":" directory #f))) (properties)) ("glibc-utf8-locales" "2.31" "out" "/gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31" (propagated-inputs ()) (search-paths ()) (properties)) ("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties))))) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=empty-package.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChndWl4KQogICAgICAgICAgICAgKGd1aXggcGFja2FnZXMpCiAgICAgICAg ICAgICAoZ251IHBhY2thZ2VzIGJhc2UpCiAgICAgICAgICAgICAoZ3VpeCBidWlsZC1zeXN0ZW0g dHJpdmlhbCkKICAgICAgICAgICAgICgoZ3VpeCBsaWNlbnNlcykgIzpwcmVmaXggbGljZW5zZTop KQoKKHBhY2thZ2UKICAobmFtZSAiZW1wdHktcGFja2FnZSIpCiAgKHZlcnNpb24gIjAiKQogIChz b3VyY2UgI2YpCiAgKGJ1aWxkLXN5c3RlbSB0cml2aWFsLWJ1aWxkLXN5c3RlbSkKICAoYXJndW1l bnRzCiAgICcoIzpidWlsZGVyCiAgICAgKGJlZ2luCiAgICAgICAodXNlLW1vZHVsZXMgKGd1aXgg YnVpbGQgdXRpbHMpKQogICAgICAgKG1rZGlyLXAgKGFzc29jLXJlZiAlb3V0cHV0cyAib3V0Iikp CiAgICAgICAjdCkKICAgICAjOm1vZHVsZXMgKChndWl4IGJ1aWxkIHV0aWxzKSkpKQogIChob21l LXBhZ2UgIiIpCiAgKHN5bm9wc2lzICIiKQogIChkZXNjcmlwdGlvbiAiIikKICAobGljZW5zZSBs aWNlbnNlOmdwbDMrKSkK --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 08 12:23:56 2021 Received: (at control) by debbugs.gnu.org; 8 Dec 2021 17:23:57 +0000 Received: from localhost ([127.0.0.1]:41276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv0fc-0005Iv-QU for submit@debbugs.gnu.org; Wed, 08 Dec 2021 12:23:56 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:33738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv0fb-0005Ik-Mt for control@debbugs.gnu.org; Wed, 08 Dec 2021 12:23:56 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 36EF6331 for ; Wed, 8 Dec 2021 18:23:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1PFZGDvv6PxI for ; Wed, 8 Dec 2021 18:23:49 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 8B74915B for ; Wed, 8 Dec 2021 18:23:49 +0100 (CET) Date: Wed, 08 Dec 2021 18:23:49 +0100 Message-Id: <87mtlbggd6.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #52093 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 36EF6331 X-Spamd-Result: default: False [0.61 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[control@debbugs.gnu.org]; RCPT_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.71)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) severity 52093 important quit From unknown Tue Jun 17 22:17:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Konrad Hinsen Subject: bug#52093: closed (Re: bug#52093: Incorrect argument handling in "guix shell") Message-ID: References: <875yrw6qnr.fsf@gnu.org> X-Gnu-PR-Message: they-closed 52093 X-Gnu-PR-Package: guix Reply-To: 52093@debbugs.gnu.org Date: Fri, 10 Dec 2021 22:29:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1639175342-22096-1" This is a multi-part message in MIME format... ------------=_1639175342-22096-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #52093: Incorrect argument handling in "guix shell" which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 52093@debbugs.gnu.org. --=20 52093: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52093 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1639175342-22096-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 52093-done) by debbugs.gnu.org; 10 Dec 2021 22:28:36 +0000 Received: from localhost ([127.0.0.1]:48110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvoNX-0005jZ-UU for submit@debbugs.gnu.org; Fri, 10 Dec 2021 17:28:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvoNU-0005jM-Mx for 52093-done@debbugs.gnu.org; Fri, 10 Dec 2021 17:28:34 -0500 Received: from [2001:470:142:3::e] (port=51536 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvoNP-0003e4-C4; Fri, 10 Dec 2021 17:28:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ppdoLrcPnaLY0q/PISPtD/sYdo1UZidUDlG7ldNZdF8=; b=eRRsq1XKX0zglls4DXF/ z17L34QJcirsq904OISRHzlxDHTepsYZXKzJvck9I2Iw3Cf1srvl9WUyCbNwbDAriB38wknuhzq8L hX3gWftA7HHm1rMo8iyzE+4nM/VIFyvdJbROU0GY9VwbCHc3fyUXxj5w1lYGTtFaOO9Mg3MAyC6tR lN0BQPCR+rrKhUqwkNJGvJcRxnUckd2EXTULDZ2EFIWorcaW4279GRziBseAMBc1VEhU6cg4b3PUc WW/RA23LPNwhq+al6s2B8U6EAilJijZmU8Cv6iAqCKHxmYRtDw0PKtXle7i6nyrraQ4pdrWWzDpDN ZRmwjwwZPc1C0Q==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:64417 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvoNP-0005zx-9C; Fri, 10 Dec 2021 17:28:27 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Konrad Hinsen Subject: Re: bug#52093: Incorrect argument handling in "guix shell" References: Date: Fri, 10 Dec 2021 23:28:24 +0100 In-Reply-To: (Konrad Hinsen's message of "Thu, 25 Nov 2021 08:57:20 +0100") Message-ID: <875yrw6qnr.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52093-done Cc: 52093-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Konrad, Konrad Hinsen skribis: > The following session illustrates that the -D option to "guix shell" is > erroneously applied to *two* package arguments rather than just one if > the first package argument takes the form of a file. > > The file "empty-package.scm" is attached, it defines an empty package > with no inputs. The environment defined by the command below should thus > contain only "hello" and "bash", plus the run-time dependencies of > "bash". Instead, it contains the build dependencies of "hello". > > $ guix shell --container -D -f empty-package.scm hello Oops, fixed in 71977101218d1fd5d7f5016cbbcb8710be057d49. Thanks! Ludo=E2=80=99. ------------=_1639175342-22096-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Nov 2021 07:57:43 +0000 Received: from localhost ([127.0.0.1]:55653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq9dW-00033R-OU for submit@debbugs.gnu.org; Thu, 25 Nov 2021 02:57:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:47454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq9dR-00033F-JP for submit@debbugs.gnu.org; Thu, 25 Nov 2021 02:57:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq9dO-0004ck-NZ for bug-guix@gnu.org; Thu, 25 Nov 2021 02:57:37 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:51397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq9dK-0006vu-LX for bug-guix@gnu.org; Thu, 25 Nov 2021 02:57:33 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id CDC8C3200F3F; Thu, 25 Nov 2021 02:57:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 25 Nov 2021 02:57:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=kHRzwszqZgFr4+RlkrP/2zFvwdPZLB9BSgwBVWSgulw=; b=YL5N1iyw 45vo6b+d/YG9L8G9nJvHRVDCS1bplEZsXXOxlgWT2o3mL8S6iEEw5sOUm8/zIMq8 UunXW8pl1aFPDkJC56dd3oiclxIvUExIImBwO5qVV9FWgEqPA1/RG/0edcWCo9iO it1HY20NmqGmNAymGpsI1Wae8v3G5WjmH5tEwzADZCddYlBHrYpKKmg62namkK1v 8uPeXjSgXE9Z+3K7WvFqVU+9dGQ/k9xC/PXL2GVsKKqU6UgQUOgXo0YQti03Dzuz 4QwECKxKldsgwQrf/8RfAMcCpUIoWh0nTjsE63jUUsOggDQffptCCgkozU2UNIYD i4lScZm4omqgtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=kHRzwszqZgFr4+RlkrP/2zFvwdPZL B9BSgwBVWSgulw=; b=jHOk5tuXJ02xmhcNqtP5Yy7CDZn34jUgogjCJxpick4BP PB0MJ+2d/3OGfDoCNh91/lRTLkPt8uKSu/pSb07kwSNJrYb1xsNzoQJ/C3U8jDvz shs8ekf42CTVkFzD47R5Y/KvKOXlaRjeZ6KRYju6tk7Aje7UCQEbDBMTyBKJCWkm kp94CwFL6sP24603SyKCSIxZ/9iY3gpE5PrjDzt0lXc6VCS/YUU69pANnAItyd30 tys8U7fcfToljyvuFDXyinZKiA8khUFFXktT1PHRokR7nM4uzyF680L66Uwj6Olk Vf8OjhPruzcfnmBss2MCchnWbjyo6ek0T9qREvW7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeelgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehmtderredttd dtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgv nhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeetudetleekffeije evkeduudffieeukeeiffehveevffettdehjeefgeeivdfgueenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnse hfrghsthhmrghilhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Nov 2021 02:57:22 -0500 (EST) From: Konrad Hinsen To: bug-guix@gnu.org Subject: Incorrect argument handling in "guix shell" Date: Thu, 25 Nov 2021 08:57:20 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=64.147.123.20; envelope-from=konrad.hinsen@fastmail.net; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain The following session illustrates that the -D option to "guix shell" is erroneously applied to *two* package arguments rather than just one if the first package argument takes the form of a file. The file "empty-package.scm" is attached, it defines an empty package with no inputs. The environment defined by the command below should thus contain only "hello" and "bash", plus the run-time dependencies of "bash". Instead, it contains the build dependencies of "hello". $ guix shell --container -D -f empty-package.scm hello [env]$ cat $GUIX_ENVIRONMENT/manifest ;; This file was automatically generated and is for internal use only. ;; It cannot be passed to the '--manifest' option. ;; Run 'guix package --export-manifest' if you want to export a file ;; suitable for '--manifest'. (manifest (version 3) (packages (("tar" "1.32" "out" "/gnu/store/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32" (propagated-inputs ()) (search-paths ()) (properties)) ("gzip" "1.10" "out" "/gnu/store/ncydgq2znms5n1d2k5yqshhf58nsixwv-gzip-1.10" (propagated-inputs ()) (search-paths ()) (properties)) ("bzip2" "1.0.8" "out" "/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8" (propagated-inputs ()) (search-paths ()) (properties)) ("xz" "5.2.4" "out" "/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4" (propagated-inputs ()) (search-paths ()) (properties)) ("file" "5.38" "out" "/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38" (propagated-inputs ()) (search-paths ()) (properties)) ("diffutils" "3.7" "out" "/gnu/store/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7" (propagated-inputs ()) (search-paths ()) (properties)) ("patch" "2.7.6" "out" "/gnu/store/cd5qf3kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6" (propagated-inputs ()) (search-paths ()) (properties)) ("findutils" "4.7.0" "out" "/gnu/store/hic7snhayfl7m6cpfqqr73nmm19bpqkg-findutils-4.7.0" (propagated-inputs ()) (search-paths ()) (properties)) ("gawk" "5.0.1" "out" "/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1" (propagated-inputs ()) (search-paths ()) (properties)) ("sed" "4.8" "out" "/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8" (propagated-inputs ()) (search-paths ()) (properties)) ("grep" "3.4" "out" "/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4" (propagated-inputs ()) (search-paths ()) (properties)) ("coreutils" "8.32" "out" "/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32" (propagated-inputs ()) (search-paths ()) (properties)) ("make" "4.3" "out" "/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3" (propagated-inputs ()) (search-paths ()) (properties)) ("bash-minimal" "5.0.16" "out" "/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16" (propagated-inputs ()) (search-paths (("BASH_LOADABLES_PATH" ("lib/bash") ":" directory #f))) (properties)) ("ld-wrapper" "0" "out" "/gnu/store/mpa04aq8lblbcviyxywxcsb1zbi0mf39-ld-wrapper-0" (propagated-inputs ()) (search-paths ()) (properties)) ("binutils" "2.34" "out" "/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34" (propagated-inputs ()) (search-paths ()) (properties)) ("gcc" "7.5.0" "out" "/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0" (propagated-inputs ()) (search-paths (("C_INCLUDE_PATH" ("include") ":" directory #f) ("CPLUS_INCLUDE_PATH" ("include/c++" "include") ":" directory #f) ("LIBRARY_PATH" ("lib" "lib64") ":" directory #f))) (properties)) ("glibc" "2.31" "out" "/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31" (propagated-inputs (("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties)))) (search-paths (("GUIX_LOCPATH" ("lib/locale") ":" directory #f))) (properties)) ("glibc" "2.31" "static" "/gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static" (propagated-inputs (("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties)))) (search-paths (("GUIX_LOCPATH" ("lib/locale") ":" directory #f))) (properties)) ("glibc-utf8-locales" "2.31" "out" "/gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31" (propagated-inputs ()) (search-paths ()) (properties)) ("linux-libre-headers" "5.4.20" "out" "/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20" (propagated-inputs ()) (search-paths ()) (properties))))) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=empty-package.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChndWl4KQogICAgICAgICAgICAgKGd1aXggcGFja2FnZXMpCiAgICAgICAg ICAgICAoZ251IHBhY2thZ2VzIGJhc2UpCiAgICAgICAgICAgICAoZ3VpeCBidWlsZC1zeXN0ZW0g dHJpdmlhbCkKICAgICAgICAgICAgICgoZ3VpeCBsaWNlbnNlcykgIzpwcmVmaXggbGljZW5zZTop KQoKKHBhY2thZ2UKICAobmFtZSAiZW1wdHktcGFja2FnZSIpCiAgKHZlcnNpb24gIjAiKQogIChz b3VyY2UgI2YpCiAgKGJ1aWxkLXN5c3RlbSB0cml2aWFsLWJ1aWxkLXN5c3RlbSkKICAoYXJndW1l bnRzCiAgICcoIzpidWlsZGVyCiAgICAgKGJlZ2luCiAgICAgICAodXNlLW1vZHVsZXMgKGd1aXgg YnVpbGQgdXRpbHMpKQogICAgICAgKG1rZGlyLXAgKGFzc29jLXJlZiAlb3V0cHV0cyAib3V0Iikp CiAgICAgICAjdCkKICAgICAjOm1vZHVsZXMgKChndWl4IGJ1aWxkIHV0aWxzKSkpKQogIChob21l LXBhZ2UgIiIpCiAgKHN5bm9wc2lzICIiKQogIChkZXNjcmlwdGlvbiAiIikKICAobGljZW5zZSBs aWNlbnNlOmdwbDMrKSkK --=-=-=-- ------------=_1639175342-22096-1--