From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] scripts: Add 'environment' command. Date: Fri, 10 Oct 2014 22:47:15 +0200 Message-ID: <87siivabzg.fsf@gnu.org> References: <87oatmch5i.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87siix59cs.fsf@gnu.org> <87r3yg1wpp.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <871tqgdt3o.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87y4sn9900.fsf@gnu.org> <87fvevdcfu.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> 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]:37718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xch5n-0004X4-FQ for guix-devel@gnu.org; Fri, 10 Oct 2014 16:47:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xch5h-00087r-EO for guix-devel@gnu.org; Fri, 10 Oct 2014 16:47:15 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:53757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xch5h-00087l-71 for guix-devel@gnu.org; Fri, 10 Oct 2014 16:47:09 -0400 In-Reply-To: <87fvevdcfu.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> (David Thompson's message of "Fri, 10 Oct 2014 14:09:09 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: David Thompson Cc: guix-devel@gnu.org David Thompson skribis: >> I didn=E2=80=99t mention it before but it would be wonderful if you coul= d come >> up with a little test case. It=E2=80=99s a bit difficult, esp. since th= e tests >> cannot assume that will download & build the world. So basically the >> test could do, in a tests/guix-environment.sh script: >> >> guix environment -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' .= .. >> >> and make sure it at least sees =E2=80=98guile=E2=80=99 in $PATH. >> >> WDYT? That can come in a later commit if you prefer. >> > > Hmm, it's actually a bit trickier than that because the bootstrap guile > has no inputs, so the resulting purified environment is completely > empty. Ah OK. > +@table @code > +@item --expression=3D@var{expr} > +@itemx -E @var{expr} > +Create an environment for the package that @var{expr} evaluates to. [...] > +@item --exec=3D@var{command} > +@item -e @var{command} > +Execute @var{command} in the new environment. Typo: swap -e/-E. The rest is alright, OK to commit! Thank you! Ludo=E2=80=99.