bad path in bash

Walton Hoops walton at vyper.hopto.org
Tue Mar 24 02:49:21 UTC 2009


Ouch! That smack hurt!

I'd assume your right about it caching the path.  I had no idea it did that.
I had originally installed the Ubuntu MySQL, checked for partitioning
support, and then built from source instead.  A cache would explain why a
reboot fixed it too. 

-----Original Message-----
From: ubuntu-users-bounces at lists.ubuntu.com
[mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Brian McKee
Sent: Monday, March 23, 2009 3:36 PM
To: Ubuntu user technical support, not for general discussions
Subject: Re: bad path in bash

On Mon, Mar 23, 2009 at 3:40 PM, Nils Kassube <kassube at gmx.net> wrote:
> Walton Hoops wrote:
>> That said (and you're going to hit me for this), a restart of the server
>> cleared up the problem.

{SMACK!}

> I would assume you had started mysql previously from the version
> installed from the Ubuntu repository. Then bash still knew the cached
> path to the now uninstalled executable. Try "hash -l" to find out which
> commands are cached. And with "hash -r" you can clear the list.

Huh.  Didn't know about that one. Thanks!

  help hash

for those following along at home.  It's a bash builtin and thus
doesn't have a man page.

Brian

-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list