Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  Games  |  Other Games  |  fortune  |  "rehash"???

fortune

fortune

BSD fortune program with fortunes tailored for OS X

Version:  1.3

   [ Views: 1371 ]

"rehash"???

Feedback Type:  Troubleshooting Report

Contributed by: awiseman Sunday, June 26 2005 @ 01:32 PM PDT

Product Platform: MacOSX

Used Product For: Less than a month

The read me says to use the shell built-in command "rehash" after doing the "make install". On my system (using bash as my shell), typing rehash just results in "-bash: rehash: comand not found". What is this command for, and why can't I execute it?   
System Info:

0 of 1 users found this helpful.

Rate this Troubleshooting Report

Was this Troubleshooting Report helpful? Yes | No

Comments

2 comments |

"rehash"??? - 8675309_jane

rehash is only necessary if you're using a C-style shell like tcsh (it basically tells your shell to re-scan your paths for new binaries). rehash is neither necessary nor supported for bash.

Reply to This

Saturday, November 18 2006 @ 01:08 PM PST


"rehash"??? - go_jesse

in bash, you just use the command
# hash -r

to get the path "cache" to be cleared out so anything new that you installed in your path with the same (or replacing) name will be picked up by the shell.

Reply to This

Tuesday, May 01 2007 @ 05:09 PM PDT