When you execute the script with shell command mode ( provide shell name), the shebang is ignored.
sh firstscript.sh , bash firstscript.sh , ksh firstscript.sh will execute the script in Bourne, Bash and Korn shell respectively. No matter what the shebang is.
Thank you for your suggestion.
I learn a lot of things from the reply of you kind mates.
I think it is worth learning because now I have a clearer pirture about what the stuff is going on.
---------- Post updated at 03:53 AM ---------- Previous update was at 03:49 AM ----------
I'm sorry I didn't make the question clear,when I say print I mean the screen output.