m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange --version issue


From: Eric Blake
Subject: Re: strange --version issue
Date: Wed, 09 Apr 2008 12:59:08 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----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             address@hidden
-----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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]