From: Peter Bailey Date: 2013-02-07T01:56:17+09:00 Subject: Re: Ruby 1.9.3-p362 on Mac OSX Hassan Schroeder wrote in post #1095557: > On Wed, Feb 6, 2013 at 7:48 AM, Peter Bailey > wrote: > >> I just put "#!/usr/bin/env ruby" into one of my Ruby scripts now. I >> tried to run it and it says: >> >> env: ruby\r: No such file or directory > > ? Did you copy/paste that from somewhere? That \r looks out of > place. > > 08:11 ~ $ cat bar > #!/usr/bin/env foo > > WAT > 08:11 ~ $ ./bar > env: foo: No such file or directory > 08:11 ~ $ Yes, I see that "\r" whenever I try to run a Ruby script. I have no idea where it's coming from. I thought it might be because the Ruby script I'm trying to run originally came from a PC. But, my RubyMine software is a Mac app., so, it should be saving the file as a Mac file, not a Windows file. -- Posted via http://www.ruby-forum.com/.