guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eliminate environment variable hints?


From: Pjotr Prins
Subject: Re: Eliminate environment variable hints?
Date: Tue, 19 Feb 2019 10:17:26 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Feb 18, 2019 at 11:18:09PM +0100, Andreas Enge wrote:
> So the two are clearly not equivalent. Which of them is actually
> preferable? I find it a bit confusing that after running
> "guix package -i hello" I cannot run "hello" immediately, unlike in
> Debian.

Just running '. $PROFILE/etc/profile' is a bit dangerous. Especially on
HPC machines.

I guix-notes I also suggest to clear the other environment settings
first with

  env -i /bin/bash --login --noprofile --norc

But nobody loves me for that.

We have pure 'guix environment'. Maybe we should have a 'guix run' too
which starts a new shell with only those setting applicable to the
profile. I think you can do this with 'guix environment' but it is not
too clear. 

> I would not be too worried about bash vs. other shells: The current
> suggestions already would not work in csh...

it would be good to document though.

Pj.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]