Re: [PATCH] scripts: Add 'environment' command.

2014-10-11 Thread Ludovic Courtès
David Thompson dthomps...@worcester.edu skribis: Fixed typo and pushed! Yay! I just noticed that ‘guix environment foo’, without -E, doesn’t work for me because my .bashrc co. reset PATH, CPATH, etc. Conversely, ‘guix environment foo -E /bin/sh’ works, because when invoked as ‘sh’, Bash does

Re: [PATCH] scripts: Add 'environment' command.

2014-10-10 Thread David Thompson
Updated patch attached. Thanks for the feedback! Tried my hand at writing some docs. New patch below. From 26cac530c7a1f69864fc819bdc14553eacd9dc23 Mon Sep 17 00:00:00 2001 From: David Thompson dthomps...@worcester.edu Date: Sun, 21 Sep 2014 13:40:05 -0400 Subject: [PATCH] scripts: Add

Re: [PATCH] scripts: Add 'environment' command.

2014-10-10 Thread Ludovic Courtès
David Thompson dthomps...@worcester.edu skribis: From 26cac530c7a1f69864fc819bdc14553eacd9dc23 Mon Sep 17 00:00:00 2001 From: David Thompson dthomps...@worcester.edu Date: Sun, 21 Sep 2014 13:40:05 -0400 Subject: [PATCH] scripts: Add 'environment' command. * guix/scripts/environment.scm

Re: [PATCH] scripts: Add 'environment' command.

2014-10-10 Thread David Thompson
Sep 17 00:00:00 2001 From: David Thompson dthomps...@worcester.edu Date: Sun, 21 Sep 2014 13:40:05 -0400 Subject: [PATCH] scripts: Add 'environment' command. * guix/scripts/environment.scm: New file. * Makefile.am (MODULES): Add it. * doc/guix.texi (Invoking guix environment): New node

Re: [PATCH] scripts: Add 'environment' command.

2014-10-10 Thread Ludovic Courtès
David Thompson dthomps...@worcester.edu skribis: I didn’t mention it before but it would be wonderful if you could come up with a little test case. It’s a bit difficult, esp. since the tests cannot assume that will download build the world. So basically the test could do, in a

Re: [PATCH] scripts: Add 'environment' command.

2014-10-10 Thread David Thompson
Ludovic Courtès l...@gnu.org writes: The rest is alright, OK to commit! Fixed typo and pushed! -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate

Re: [PATCH] scripts: Add 'environment' command.

2014-10-09 Thread Eric Bavier
David Thompson writes: Hello Guix hackers, Below is a preliminary version of a new guix command called 'environment'. For those familiar with Nix, it works a lot like nix-shell. [...] By default, running 'guix environment' spawns a new $SHELL process, because it is usually what one would

Re: [PATCH] scripts: Add 'environment' command.

2014-10-09 Thread Thompson, David
On Thu, Oct 9, 2014 at 12:50 PM, Eric Bavier ericbav...@gmail.com wrote: David Thompson writes: By default, running 'guix environment' spawns a new $SHELL process, because it is usually what one would want to do. However, the '--exec' flag can be used to specify the command to run. For

Re: [PATCH] scripts: Add 'environment' command.

2014-10-09 Thread Eric Bavier
Thompson, David writes: On Thu, Oct 9, 2014 at 12:50 PM, Eric Bavier ericbav...@gmail.com wrote: David Thompson writes: Finally, the '--load' flag can be used to read a package from a file instead of searching $GUIX_PACKAGE_PATH. Could we instead have a -L or --load-path option like for

Re: [PATCH] scripts: Add 'environment' command.

2014-10-09 Thread Ludovic Courtès
$GUIX_PACKAGE_PATH. This looks good to me. From 298dcc1dd3aac49e033debeea154c91b25229c14 Mon Sep 17 00:00:00 2001 From: David Thompson dthomps...@worcester.edu Date: Sun, 21 Sep 2014 13:40:05 -0400 Subject: [PATCH] scripts: Add 'environment' command. * guix/scripts/environment.scm: New file

Re: [PATCH] scripts: Add 'environment' command.

2014-10-09 Thread David Thompson
! From 3dffa5a126173d46c22750a7d7f454e2c24ce4ea Mon Sep 17 00:00:00 2001 From: David Thompson dthomps...@worcester.edu Date: Sun, 21 Sep 2014 13:40:05 -0400 Subject: [PATCH] scripts: Add 'environment' command. * guix/scripts/environment.scm: New file. * Makefile.am (MODULES): Add it. --- Makefile.am

[PATCH] scripts: Add 'environment' command.

2014-10-08 Thread David Thompson
. :) WDYT? From 298dcc1dd3aac49e033debeea154c91b25229c14 Mon Sep 17 00:00:00 2001 From: David Thompson dthomps...@worcester.edu Date: Sun, 21 Sep 2014 13:40:05 -0400 Subject: [PATCH] scripts: Add 'environment' command. * guix/scripts/environment.scm: New file. * Makefile.am (MODULES): Add