Detect current shell inside a script

I wish to print my current shell which happens to be bash in my script check.sh

more check.sh

echo $0
echo `ps -p $$`

[/FONT][/COLOR]

But instead of printing

it prints check.sh i.e the name of the script for both the commands.

Can you please suggest how to print the current shell i m on inside the script ?

I am on Linux OS.

echo $SHELL

or

echo ${SHELL##*/}

for just the program name without the path.

If you have /proc available you could do

readlink /proc/$$/exe