Know your current shell

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Know your current shell

Rinkkzy
How many ways are there to know the currently working shell..??
Specially..I want without using $SHELL env variable.
Please help me..!!
Reply | Threaded
Open this post in threaded view
|

Re: Know your current shell

Guru
Administrator
$SHELL is used to know your login shell, not the currently working shell. $0 will give you the right answer.  Check this for more: Login or non-login shell
Reply | Threaded
Open this post in threaded view
|

Re: Know your current shell

Rinkkzy
Ok..Thank you