Quoteing vnainar@mantraonline.com, on Sat, Feb 12, 2005 at 10:28:21PM +0900:
Hi!
I am learning Ruby and I was using python earlier.
I was trying out small scripts ( cut and pasted from ruby docs )
and in one script I added shebang line invloking python instead
of ruby by mistake ( I use a bunch of vim 'abbreviations ' in my
.vimrc to add the lines for perl , python ,sh. etc). When I ran
" ruby file.rb" , ruby exec'd python !
I believe this has been commented on before, and that it is common
behaviour of perl and ruby and maybe several other languages.
I thought only the shell is supposed to use the shebang line.
The OS loader understands #!.
Cheers,
Sam