From: Chris Hulan Date: 2008-02-06T02:54:56+09:00 Subject: Re: how to say # in ruby On Feb 4, 8:20 pm, Gerry Ford wrote: > My second question is about the shebang line: #! > I was surprised to find that it matters what's written here when using > the windows platform. There is no env folder in the bin folder, so if > that's a path, then it's a path to nowhere. What "should" the first > line say? > -- I don't think it does matter on windows. To execute a ruby file (say by double-clicking) you need to have the file associations configured. On *nix the shebang allows a similar function. #!/usr/bin/env is not a path, it is the 'env' command in /usr/bin #!/usr/bin/env ruby will find ruby on the PATH then execute it, saves hard-coding the ruby path (but assumes env is in a standard location). Cheers