From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [PATCH] scripts: Add 'environment' command. Date: Thu, 09 Oct 2014 11:50:14 -0500 Message-ID: <8738axw5kp.fsf@gmail.com> References: <87oatmch5i.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcGtA-0004Hb-KS for guix-devel@gnu.org; Thu, 09 Oct 2014 12:48:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcGt5-00075B-6Q for guix-devel@gnu.org; Thu, 09 Oct 2014 12:48:28 -0400 Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:50224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcGt5-000753-16 for guix-devel@gnu.org; Thu, 09 Oct 2014 12:48:23 -0400 Received: by mail-ig0-f175.google.com with SMTP id uq10so13587269igb.14 for ; Thu, 09 Oct 2014 09:48:22 -0700 (PDT) In-reply-to: <87oatmch5i.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> 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 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 want to do. However, the '--exec' > flag can be used to specify the command to run. For this option, together with the --search-paths option, would it be possible to customize the syntax of the output from the show-search-paths function? This might be a question for other guix commands as well. Either the current shell or the shell from --exec might set variables in a different way. E.g. the user is using the "fish" shell, and doesn't want to spawn a new process, they should be able to:: eval (guix environment --search-paths guile) Btw, fish uses 'set -x PATH "..."' to export PATH set to "..." Just a thought. > 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 `guix build`? This would be useful if the user wants to give multiple packages to `guix environment` that are all outside $GUIX_PACKAGE_PATH. I'm very excited for this. -- Eric Bavier Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html