Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check shell type in solaris 8 1

Status
Not open for further replies.

hok1man

Technical User
Feb 16, 2008
102
Hi guys,

just wondering how to check shell type in solaris 8
I've tried

echo $0
result
No file for $0

but if I type bash and I check $0, the result came up.

but If I type csh
and I echo $0, result
No file for $0

any idea why?



 
The result doesn't look right

Code:
bash-2.03$ echo $SHELL
/bin/csh
bash-2.03$ echo $0
bash

I'm actually in bash
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top