From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#32789: Bash finds old version of guix after guix pull Date: Fri, 21 Sep 2018 18:06:16 +0200 Message-ID: <87tvmiu96v.fsf@elephly.net> References: <875zyzsutm.fsf@gmail.com> <87woreucb1.fsf@elephly.net> <87tvmirj1l.fsf@gmail.com> 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]:35874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3NxX-0000PQ-J2 for bug-guix@gnu.org; Fri, 21 Sep 2018 12:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3NxS-0007ci-VM for bug-guix@gnu.org; Fri, 21 Sep 2018 12:07:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44126) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3NxP-0007bc-ME for bug-guix@gnu.org; Fri, 21 Sep 2018 12:07:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g3NxP-0004MF-B7 for bug-guix@gnu.org; Fri, 21 Sep 2018 12:07:03 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-reply-to: <87tvmirj1l.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Alex Branham Cc: 32789-done@debbugs.gnu.org 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 =E2=80=9Chash=E2=80=9D. I don=E2=80=99t know what would trigger th= is behaviour in your case. -- Ricardo