Find out which shell I am currently using
Hi,
I am trying to find out which shell I am currently working with.
If I "echo $SHELL", I get "/bin/sh", no matter which shell I am actually working with (ksh, bash, sh, csh).
The other option is to look to the passwd file.
And what, if I am not the root user ?
In other words:
It must be possible to know which shell is my login shell, but how ?
------------------------------ o O o ------------------------------
What I also would like to do:
> bash
[someuser@somenode] $ echo somewhat
or
[someuser@somenode] $ some command
output:
Bash Shell
OR:
> ksh
$ echo somewhat
or
$ some command
output:
Korn Shell
Can anybody help me ?
Thanks in advance,
Tajci
|