From: Bill Guindon Date: 2007-05-11T23:52:17+09:00 Subject: Re: shebang - what's the point? On 5/11/07, Todd Burch wrote: > I've written a few hundred scripts now, and not once have I ever coded a > shebang line. I'm writing on both Windows and the Mac (Tiger). > > Any time I'm kicking off a script from the Command Prompt or in Terminal > on the Mac, I simply type > > ruby .rb > > and it works just fine. > > So, when it comes down to it, what's the point of the shebang line? Unix/Linux and the Apache webserver (among others) use it to determine how to execute the file. If you set the file to be executable (via chmod), and it has the correct shebang line, you wouldn't need to type 'ruby', you could run it with just the filename. > Todd > > -- > Posted via http://www.ruby-forum.com/. > > -- Bill Guindon (aka aGorilla) The best answer to most questions is "it depends".