From: Peter Bailey Date: 2013-02-07T02:00:32+09:00 Subject: Re: Ruby 1.9.3-p362 on Mac OSX Peter Bailey wrote in post #1095573: > 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. I got it! Yes, it was indeed some Windows gibberish. I opened my Ruby script in BBEdit and saved it as a Unix file. Now, the script works! Thank you all for your help! -- Posted via http://www.ruby-forum.com/.