From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: [PATCH] scripts: Add 'environment' command. Date: Sat, 11 Oct 2014 08:27:06 -0400 Message-ID: <87oati3i79.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> 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> <87siivabzg.fsf@gnu.org> <877g07d0zd.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <8761fq99mr.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]:46143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcvlW-0001H1-0R for guix-devel@gnu.org; Sat, 11 Oct 2014 08:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcvlP-000522-Bg for guix-devel@gnu.org; Sat, 11 Oct 2014 08:27:17 -0400 Received: from na3sys009aog121.obsmtp.com ([74.125.149.145]:60528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcvlP-00051a-4l for guix-devel@gnu.org; Sat, 11 Oct 2014 08:27:11 -0400 Received: by mail-qg0-f41.google.com with SMTP id f51so5131112qge.28 for ; Sat, 11 Oct 2014 05:27:08 -0700 (PDT) In-Reply-To: <8761fq99mr.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > David Thompson skribis: > >> Fixed typo and pushed! > > Yay! > > I just noticed that =E2=80=98guix environment foo=E2=80=99, without -E, d= oesn=E2=80=99t work for > me because my .bashrc & co. reset PATH, CPATH, etc. > > Conversely, =E2=80=98guix environment foo -E /bin/sh=E2=80=99 works, beca= use when > invoked as =E2=80=98sh=E2=80=99, Bash does not read .bashrc. > > I=E2=80=99m not sure if it=E2=80=99s something wrong with my Bash initial= ization files > or something that might affect others. WDYT? > I don't think it's something "wrong" with your files, really, but it is incompatible with the way 'guix environment' currently operates. I took another look at nix-build to see how they do things. They create a bashrc file in a temporary directory and run bash (or whatever $NIX_BUILD_SHELL is) with the '--rcfile' flag so that the user's bashrc isn't used. We could do something similar, but right now I don't have any reason to believe that all shells accept an '--rcfile' option, so it could easily break other setups. Thoughts? --=20 David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate