From: Phillip Gawlowski Date: 2010-01-27T01:03:06+09:00 Subject: Re: Installing Ruby Application On 26.01.2010 16:40, Phrogz wrote: > You don't even need it to have a .rb extension if you have a shebang > line at the top. > (Even works on Windows.) > #!/usr/bin/env ruby -KU No, it doesn't. PS C:\Scripts> .\shebang.ext # Pops up Windows' unknown filetype dialog PS C:\Scripts> cat .\shebang.ext #!/usr/bin/env ruby -KU puts "hello world" PS C:\Scripts> PS C:\Scripts> mv .\shebang.ext .\shebang.rb PS C:\Scripts> .\shebang.rb hello world PS C:\Scripts> Ruby's installers register the .rb[w] extension with Windows, however. -- Phillip Gawlowski