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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32789 in the body.
You can then email your comments to 32789 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#32789; Package guix. (Thu, 20 Sep 2018 21:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Branham <alex.branham <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 20 Sep 2018 21:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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




Information forwarded to bug-guix <at> gnu.org:
bug#32789; Package guix. (Fri, 21 Sep 2018 08:06:02 GMT) Full text and rfc822 format available.

Message #8 received at 32789 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Alex Branham <alex.branham <at> gmail.com>
Cc: 32789 <at> debbugs.gnu.org
Subject: Re: bug#32789: Bash finds old version of guix after guix pull
Date: Fri, 21 Sep 2018 10:05:28 +0200
Alex,

Alex Branham wrote:
> 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 :-(

Was it

 $ set +h

?

Kind regards,

T G-R




Information forwarded to bug-guix <at> gnu.org:
bug#32789; Package guix. (Fri, 21 Sep 2018 15:00:02 GMT) Full text and rfc822 format available.

Message #11 received at 32789 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Alex Branham <alex.branham <at> gmail.com>
Cc: 32789 <at> debbugs.gnu.org
Subject: Re: bug#32789: Bash finds old version of guix after guix pull
Date: Fri, 21 Sep 2018 16:58:58 +0200
Hi Alex,

> 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 :-(

I think you mean “hash -r” to make bash forget previously remembered
locations.

--
Ricardo





Information forwarded to bug-guix <at> gnu.org:
bug#32789; Package guix. (Fri, 21 Sep 2018 15:02:01 GMT) Full text and rfc822 format available.

Message #14 received at 32789 <at> debbugs.gnu.org (full text, mbox):

From: Alex Branham <alex.branham <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 32789 <at> debbugs.gnu.org
Subject: Re: bug#32789: Bash finds old version of guix after guix pull
Date: Fri, 21 Sep 2018 10:01:42 -0500
On Fri 21 Sep 2018 at 09:58, Ricardo Wurmus <rekado <at> elephly.net> wrote:

> Hi Alex,
>
>> 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 :-(
>
> I think you mean “hash -r” to make bash forget previously remembered
> locations.

Indeed, that was it. Thanks for helping out here and on IRC!

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

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

Thanks again,
Alex




Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Fri, 21 Sep 2018 16:07:03 GMT) Full text and rfc822 format available.

Notification sent to Alex Branham <alex.branham <at> gmail.com>:
bug acknowledged by developer. (Fri, 21 Sep 2018 16:07:03 GMT) Full text and rfc822 format available.

Message #19 received at 32789-done <at> debbugs.gnu.org (full text, mbox):

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





Information forwarded to bug-guix <at> gnu.org:
bug#32789; Package guix. (Fri, 21 Sep 2018 17:48:01 GMT) Full text and rfc822 format available.

Message #22 received at 32789-done <at> debbugs.gnu.org (full text, mbox):

From: Alex Branham <alex.branham <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
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 12:47:27 -0500
On Fri 21 Sep 2018 at 11:06, Ricardo Wurmus <rekado <at> elephly.net> wrote:

> 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.

Right, all that makes sense. I'm wondering why/how bash ever found
guix-0.14 since I started out with guix-0.15.

Alex




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Oct 2018 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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