But you are right, rehash simply does not exist in sh neither in bash. (I thought it did exist in sh since I use it on my FreeBSD server were I am pretty sure I use sh and not csh, but obviously I am wrong).