From: Sumair Mahmood (Sumair.Mahmood@qlogic.com)
Date: Tue Jun 04 2002 - 14:27:44 EDT
OK, this is such a basic question I'm ashamed to call myself an Admin! But
the only stupid question is the one that goes un-asked, right? (Hmf! That
still doesn't make me feel good!)
QUESTION:
=========
Why does `echo $SHELL` lie to me?!
> My default shell is 'csh'
mysystem{root} 1 : grep root /etc/passwd
root:x:0:1:Super-User:/:/bin/csh
mysystem{root} 2 : echo $SHELL
/bin/csh
> No problems here
> If I use 'bash', $SHELL still indicates 'csh'
mysystem{root} 3 : bash
bash-2.03# echo $SHELL
/bin/csh
> If I use 'tcsh', $SHELL also indicates 'csh'
bash-2.03# exit
exit
mysystem{root} 4 : tcsh
mysystem{root} 1 : echo $SHELL
/bin/csh
> If I use 'ksh', $SHELL indicates 'csh'
mysystem{root} 2 : exit
exit
mysystem{root} 5 : ksh
# echo $SHELL
/bin/csh
I know the variable is not being exported from either my .cshrc,
.login, etc. I also didn't find anything relevant in /etc/default/login.
Help?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Sumair Mahmood
Unix Systems Administrator
QLogic Corporation
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:25 EDT