GNU bug report logs - #32789
Bash finds old version of guix after guix pull

Previous Next

Package: guix;

Reported by: Alex Branham <alex.branham <at> gmail.com>

Date: Thu, 20 Sep 2018 21:51:02 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#32789: closed (Bash finds old version of guix after guix pull)
Date: Fri, 21 Sep 2018 16:07:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 21 Sep 2018 18:06:16 +0200
with message-id <87tvmiu96v.fsf <at> elephly.net>
and subject line Re: bug#32789: Bash finds old version of guix after guix pull
has caused the debbugs.gnu.org bug report #32789,
regarding Bash finds old version of guix after guix pull
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
32789: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32789
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alex Branham <alex.branham <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Bash finds old version of guix after guix pull
Date: Thu, 20 Sep 2018 16:49:41 -0500
Hello,

After installing guixsd (0.15) on a VM and doing "guix pull", "guix --version"
gives 0.14-<stuff>.

I asked about this on IRC a few weeks ago and got a helpful answer. All
I needed to do to fix is was to run a simple bash command.
Unfortunately, I've forgotten what that was :-(

Reporting here since I didn't find anything in the issue tracker when I
looked.

Thanks,
Alex


[Message part 3 (message/rfc822, inline)]
From: Ricardo Wurmus <rekado <at> elephly.net>
To: Alex Branham <alex.branham <at> gmail.com>
Cc: 32789-done <at> debbugs.gnu.org
Subject: Re: bug#32789: Bash finds old version of guix after guix pull
Date: Fri, 21 Sep 2018 18:06:16 +0200
Hi Alex,

> I'll mention here for posterity that restarting the system also "fixes"
> the issue.

Yes, bash will not remember paths across reboots.

> I still don't understand why bash found guix 0.14 after guix pulling
> from guix 0.15 though.

Bash optimizes lookups on the PATH; having found an executable on PATH
once, it can remember that location for a minor speed boost.  The only
problem with this is that the cache can go stale.

From what I understand remembering locations is usually done manually by
running “hash”.  I don’t know what would trigger this behaviour in your
case.

--
Ricardo



This bug report was last modified 6 years and 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.