Unix Technical Forum

bash cache?

This is a discussion on bash cache? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, Today I upgraded my gftp. Now I'm getting something that has happened before, but I never thought much ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 05:19 PM
Kevin
 
Posts: n/a
Default bash cache?

Hello,

Today I upgraded my gftp. Now I'm getting something that has happened
before, but I never thought much of it. OK, prior to my upgrade:

kevin@naia:~/tmp/gftp-2.0.15$ which gftp
/usr/bin/gftp

So I removepkg'd gftp, everything went fine. I compiled the new one
(/usr/local prefix), and did make install - no problems.

kevin@naia:~/tmp/gftp-2.0.15$ which gftp
/usr/local/bin/gftp

Looks good. So now I go to run it:

kevin@naia:~$ gftp
-bash: /usr/bin/gftp: No such file or directory


Where is bash getting that from?? I know I can get it to run by opening
another shell, but I want to know why this happens. Anyone know?

Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 05:20 PM
Joost Kremers
 
Posts: n/a
Default Re: bash cache?

Kevin wrote:
[after removing gftp and installing new one in /usr/local]
> kevin@naia:~$ gftp
> -bash: /usr/bin/gftp: No such file or directory
>
> Where is bash getting that from?? I know I can get it to run by opening
> another shell, but I want to know why this happens. Anyone know?


'man bash' has all the details. search for 'hash'. bash keeps a table of
full paths to binaries in $PATH. you can empty this table with 'hash
-r'. (see 'man bash', section SHELL BUILTIN COMMANDS.)

--
Joost Kremers
since when is vi an editor? a discussion on vi belongs in
comp.tools.unusable or something... ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 05:20 PM
David
 
Posts: n/a
Default Re: bash cache?

Kevin wrote:
>
> Today I upgraded my gftp. Now I'm getting something that has happened
> before, but I never thought much of it. OK, prior to my upgrade:
>
> So I removepkg'd gftp, everything went fine. I compiled the new one
> (/usr/local prefix), and did make install - no problems.

--snip--
>
> Where is bash getting that from?? I know I can get it to run by opening
> another shell, but I want to know why this happens. Anyone know?


Use a "SlackBuild" script to build a slack-package to install it
with.

ftp://12.219.169.125/linux/SlackBuild/9.1/gnome/gftp/

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 i686 (GCC) 3.3.1
Uptime: 5 days, 3:35, 2 users, load average: 1.01, 1.04, 1.04

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 05:20 PM
Menno Duursma
 
Posts: n/a
Default Re: bash cache?

On Sat, 11 Oct 2003 19:19:42 +0000, Joost Kremers wrote:
> Kevin wrote:


[snip]

> 'man bash' has all the details. search for 'hash'. bash keeps a table of


Thanks for that, i didn't now that either.
Just a little more readable (in IMO) would be to fire off:

help hash

--
-Menno.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 05:20 PM
Kevin
 
Posts: n/a
Default Re: bash cache?

On Sat, 11 Oct 2003 19:19:42 +0000, Joost Kremers wrote:

> Kevin wrote:
> [after removing gftp and installing new one in /usr/local]
>> kevin@naia:~$ gftp
>> -bash: /usr/bin/gftp: No such file or directory
>>
>> Where is bash getting that from?? I know I can get it to run by opening
>> another shell, but I want to know why this happens. Anyone know?

>
> 'man bash' has all the details. search for 'hash'. bash keeps a table of
> full paths to binaries in $PATH. you can empty this table with 'hash
> -r'. (see 'man bash', section SHELL BUILTIN COMMANDS.)




perfect! I knew someone out there had the answer. I tried searching
the bash man page before, but wasn't really sure what I was looking
for. Thanks!

Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-18-2008, 05:21 PM
Simon
 
Posts: n/a
Default Re: bash cache?

On Sun, 12 Oct 2003 03:52:01 GMT, Kevin <wicket59@hotmail.com> wrote:
> I tried searching the bash man page before, but wasn't really sure
> what I was looking for.


A babelfish?


--
Simon <simon@no-dns-yet.org.uk> **** GPG: F4A23C69
"We demand rigidly defined areas of doubt and uncertainty."
- Douglas Adams

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-18-2008, 05:24 PM
Eef Hartman
 
Posts: n/a
Default Re: bash cache?

Joost Kremers <joostkremers@yahoo.com> wrote:
> 'man bash' has all the details. search for 'hash'. bash keeps a table of
> full paths to binaries in $PATH.


tcsh also keeps a hashed table, which you can rebuild with "rehash".
Only "." is excepted, new executables there will always be seen.
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TWA **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-18-2008, 05:26 PM
David Filion
 
Posts: n/a
Default Re: bash cache?

Simon wrote:
> On Sun, 12 Oct 2003 03:52:01 GMT, Kevin <wicket59@hotmail.com> wrote:
>
>>I tried searching the bash man page before, but wasn't really sure
>>what I was looking for.

>
>
> A babelfish?
>
>


Nothing like sticking a fish in your ear to help clear things up! LOL

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com