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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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... ;-) |
| |||
| 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 |
| |||
| 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. |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 ** ************************************************** ****************** |
| ||||
| 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 |