Re: How to find your shell



I agree with Mr Kletnieks. I was mistaken. The $SHELL
does not give the currently executing shell. It
continues to give the original shell (given in the
/etc/passwd). 
thanks.
bye
shiraz

--- Valdis Kletnieks vt edu wrote:
> On Tue, 26 Apr 2005 21:40:45 PDT, Shiraz Baig said:
> 
> > You see the point is "which shell are you are 
> > intrested in?" Are you interested in the currently
> 
> > executing shell. Or you are interested in your 
> > login shell. The former is aval thru echo $SHELL.
> > and the error reporting. The latter is available
> > thru cat /etc/passwd.
> 
> Umm.. no... the former (the currently executing
> shell)
> is *NOT* available in $SHELL in the situation I
> described,
> because it had been set to the shell specified in
> /etc/passwd
> rather than the currently executing shell.  That was
> the *point*
> of the posting - $SHELL isn't what you'd naively
> expect at that point...
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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