Mailing List Archive

Support open source code!


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

Re: Bug in RH which cmd?



Bingo ^_^

I guess this is a value-added feature of bash ...

Jc

>From: "Thomas O'Dowd" <tom@example.com>
>Reply-To: tlug@example.com
>To: tlug@example.com
>Subject: Re: Bug in RH which cmd?
>Date: Wed, 30 May 2001 11:54:43 +0900
>
>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
>
>-----------------------------------------------------------------------
>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
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links