From: Jonathan Hudson Date: 2006-03-10T06:23:42+09:00 Subject: Re: "ruby myscript.rb" Works, "./myscript.rb" Doesn't Michael Gorsuch wrote: > wtf? > > There isn't any whitespace or blank lines before: > > #!/usr/bin/ruby > > is there? > > On 3/9/06, Nathan Olberding wrote: >>> What if you use the path straight to the ruby interpreter, and not >>> /usr/bin/env? >> Very interesting! When I change /usr/bin/env ruby to /usr/bin/ruby >> (which is where the binary is), I get: >> >> : bad interpreter: No such file or directory Your script has been on a Windows box or otherwise polluted with a \r (Carriage return) after ruby? The kernel can't find /usr/bin/ruby\r -jonathan