<div dir="ltr">On Fri, Aug 5, 2011 at 06:46, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr"><div class="im">changes them will render that information obsolete. With bash (OSX default) and zsh, "hash -r" will update the seen command information; with tcsh, it's "rehash". </div>
</div></blockquote><div><br></div><div>Just for completeness: "rehash" is the historical command and should work in any shell that supports command hashing (it's a built-in alias to "hash -r" in bash and zsh, and a built-in in tcsh and ksh); and as a last resort you can just make a dummy update to $PATH to force any command hash to be discarded:</div>
<div><br></div><div> PATH="$PATH" # in sh-like shells</div><div> set path=($path) # in csh-like shells</div><div><br></div></div>-- <br>brandon s allbery <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>
wandering unix systems administrator (available) (412) 475-9364 vm/sms<br><br>
</div>