Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <43007EC3.40005@byu.net>
Date: Mon, 15 Aug 2005 05:38:43 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Herb Martin <HerbM@learnquick.com>
CC: cygwin@cygwin.com
Subject: Re: Another (differently) broken man on CygWin 1.5.8
References: <EIL8XGD-0002Y8-NV@mail2.learnquick.com>
In-Reply-To: <EIL8XGD-0002Y8-NV@mail2.learnquick.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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

According to Herb Martin on 8/14/2005 10:22 PM:
> 
> 	cygwin (like Linux apparently) keeps a database of
> 		programs and so deleting an incorrect program 
> 		on the path may leave the OS complaining about
> 		the missing item rather than using the now
> 		available correct item EVEN THOUGH the correct
> 		program is earlier in the path.

In bash, "shopt -s checkhash" tells bash to recheck the PATH when a
program disappears from its hashed location.  "hash -p /usr/bin/man man"
tells bash to remember that man should be /usr/bin/man, regardless of the
path.  And "hash -r man" removes the current hashing of man, making the
next use of man do a PATH search.  (Read up on 'man bash' for more.)

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAH7C84KuGfSFAYARAl5vAJ9oyDe320K5pu/fnS+kEMroSSRnRACfaK7c
aGmabgEpRWmmUikZung/kRw=
=uK63
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

