-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to John Calcote on 4/9/2008 9:44 AM:
| BTW, what's the purpose of "hash"? I read the help on it, but it only
| explains how to use it, not what its rationale is. Clearly it's a
| command cache, but does looking in the search path for an executable
| take so much more time that a location cache was warranted in the shell?

Yes, it does make a difference.  Particularly if your PATH includes
network drives that might not be present, or on platforms like cygwin
where reading a directory is painfully slow.

One more piece of advice - you can use

$ PATH=$PATH

to force the hash to clear itself after changing where a binary is
installed, and, in bash,

$ shopt -s checkhash

to force bash to be smarter about its hashing choices.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf9EfwACgkQ84KuGfSFAYCx7ACeNUoWvi0+ri9F/2uahCZWR4EC
ef4AoMgJd3k5h/AqfP/6zDVa5XdpQWjx
=OIt9
-----END PGP SIGNATURE-----


_______________________________________________
m4-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-discuss

Reply via email to