Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: Bug in RH which cmd?
- To: tlug@example.com
- Subject: Re: Bug in RH which cmd?
- From: "Thomas O'Dowd" <tom@example.com>
- Date: Wed, 30 May 2001 11:54:43 +0900
- Content-Disposition: inline
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <F135iOa7ddhlHs46tfU0001088e@example.com>; from jean_christian@example.com on Wed, May 30, 2001 at 02:21:26AM -0000
- References: <F135iOa7ddhlHs46tfU0001088e@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <B4TaZ.A.hBC.TCGF7@example.com>
- Resent-Sender: tlug-request@example.com
- User-Agent: Mutt/1.2.5i
Try using # hash -r If you've executed named in the current shell, before installing the new version, the path to it is remembered in the hash table in bash. which is an external command so it will search the path. if you type "hash" with no options you'll see what is there. Tom. On Wed, May 30, 2001 at 02:21:26AM -0000, Jean-Christian Imbeault wrote: > Ok, I know it must something really simple but I just can't seem to wrap my > head around the following seemingly strange behaviour of my Linux box. > > I just installed BIND 9.1.2 (I had 9.1.0 installed) and now when I inquire > named to find out which version it is I get 9.1.0 back ... so I check a few > this [see below...] > > [root@example.com bind-9.1.2]# /usr/local/sbin/named -v > BIND 9.1.2 > [root@example.com bind-9.1.2]# which named > /usr/local/sbin/named > [root@example.com bind-9.1.2]# named -v > BIND 9.1.0 > > So it seems to me that my shell correctly points to the proper named. But > the version number I get back is different depending on wether I call it > with the full path name or let the shell find out where it is. Why is this? > > which -a named gives me all the named's I have > > [root@example.com samba]# which -a named > /usr/local/sbin/named > /usr/sbin/named > /usr/local/sbin/named > /usr/sbin/named > > But man which clearly says: > > >it prints to stdout the full path of the executables > >that would have been executed when this argument had been > >entered at the shell prompt. > > Is there a bug in "which"? > > Jc > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > ----------------------------------------------------------------------- > Next Technical Meeting: Sat, May 12 13:30- > Next Nomikai Meeting: Fri, June (TBA) 19:30- Tengu Tokyo Eki Mae > ----------------------------------------------------------------------- > more info: http://www.tlug.gr.jp Sponsor: Global Online Japan > -- Thomas O'Dowd. - Nooping - http://nooper.com tom@example.com - Testing - http://nooper.co.jp/labs
- References:
- Bug in RH which cmd?
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
Home | Main Index | Thread Index
- Prev by Date: Bug in RH which cmd?
- Next by Date: Re: Bug in RH which cmd?
- Prev by thread: Bug in RH which cmd?
- Next by thread: Re: Bug in RH which cmd?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links