From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23306: 'guix environment --container' silently rejects invalid --expose parameters Date: Mon, 18 Apr 2016 11:46:30 +0200 Message-ID: <87mvor8d1l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as5lp-0003fF-IQ for bug-guix@gnu.org; Mon, 18 Apr 2016 05:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1as5lm-0003og-3g for bug-guix@gnu.org; Mon, 18 Apr 2016 05:47:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as5lm-0003oc-0l for bug-guix@gnu.org; Mon, 18 Apr 2016 05:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1as5ll-0004aw-Sq for bug-guix@gnu.org; Mon, 18 Apr 2016 05:47:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as5lQ-0002gV-NX for bug-guix@gnu.org; Mon, 18 Apr 2016 05:46:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1as5lK-0003k6-6f for bug-guix@gnu.org; Mon, 18 Apr 2016 05:46:40 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as5lK-0003k2-36 for bug-guix@gnu.org; Mon, 18 Apr 2016 05:46:34 -0400 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:48176 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1as5lJ-0005jj-64 for bug-guix@gnu.org; Mon, 18 Apr 2016 05:46:33 -0400 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 23306@debbugs.gnu.org Passing a nonexistent file as --expose leads =E2=80=98guix environment=E2= =80=99 to silently fail: --8<---------------cut here---------------start------------->8--- $ guix environment --ad-hoc guile --expose=3Ddoes-not-exist --container guix environment: warning: ambiguous package specification `guile' guix environment: warning: choosing guile-2.0.11 from gnu/packages/guile.sc= m:125:2 $ echo $? 1 --8<---------------cut here---------------end--------------->8--- It would be nice to print an error message. Ludo=E2=80=99.