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.