unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32789: Bash finds old version of guix after guix pull
@ 2018-09-20 21:49 Alex Branham
  2018-09-21  8:05 ` Tobias Geerinckx-Rice
  2018-09-21 14:58 ` Ricardo Wurmus
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Branham @ 2018-09-20 21:49 UTC (permalink / raw)
  To: 32789

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#32789: Bash finds old version of guix after guix pull
  2018-09-20 21:49 bug#32789: Bash finds old version of guix after guix pull Alex Branham
@ 2018-09-21  8:05 ` Tobias Geerinckx-Rice
  2018-09-21 14:58 ` Ricardo Wurmus
  1 sibling, 0 replies; 6+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-09-21  8:05 UTC (permalink / raw)
  To: Alex Branham; +Cc: 32789

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#32789: Bash finds old version of guix after guix pull
  2018-09-20 21:49 bug#32789: Bash finds old version of guix after guix pull Alex Branham
  2018-09-21  8:05 ` Tobias Geerinckx-Rice
@ 2018-09-21 14:58 ` Ricardo Wurmus
  2018-09-21 15:01   ` Alex Branham
  1 sibling, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2018-09-21 14:58 UTC (permalink / raw)
  To: Alex Branham; +Cc: 32789


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#32789: Bash finds old version of guix after guix pull
  2018-09-21 14:58 ` Ricardo Wurmus
@ 2018-09-21 15:01   ` Alex Branham
  2018-09-21 16:06     ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Branham @ 2018-09-21 15:01 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 32789


On Fri 21 Sep 2018 at 09:58, Ricardo Wurmus <rekado@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#32789: Bash finds old version of guix after guix pull
  2018-09-21 15:01   ` Alex Branham
@ 2018-09-21 16:06     ` Ricardo Wurmus
  2018-09-21 17:47       ` Alex Branham
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2018-09-21 16:06 UTC (permalink / raw)
  To: Alex Branham; +Cc: 32789-done


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#32789: Bash finds old version of guix after guix pull
  2018-09-21 16:06     ` Ricardo Wurmus
@ 2018-09-21 17:47       ` Alex Branham
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Branham @ 2018-09-21 17:47 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 32789-done


On Fri 21 Sep 2018 at 11:06, Ricardo Wurmus <rekado@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-21 17:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-20 21:49 bug#32789: Bash finds old version of guix after guix pull Alex Branham
2018-09-21  8:05 ` Tobias Geerinckx-Rice
2018-09-21 14:58 ` Ricardo Wurmus
2018-09-21 15:01   ` Alex Branham
2018-09-21 16:06     ` Ricardo Wurmus
2018-09-21 17:47       ` Alex Branham

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).