From: Jonathan Cairns Date: 2013-02-07T02:00:05+09:00 Subject: Re: Ruby 1.9.3-p362 on Mac OSX --047d7b603bcedcfa5b04d51141d3 Content-Type: text/plain; charset=ISO-8859-1 > 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. We can see whether it's something in the file if you pass the binary file (with the shebang) through xxd, and paste the output: $ xxd /path/to/your/executable That will give us the hex codes of the characters in your file, and we can see whether there's something dodgy in there. Cheers -- *Jon Cairns* * * e-mail: jon@joncairns.com website: http://joncairns.com twitter: @joonty --047d7b603bcedcfa5b04d51141d3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
> Yes, I see that "\r" whenever I try to run a Ruby script. = I have no idea
> where it&#= 39;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 a= pp., so, it should be saving the file as a Mac file, not a
> Windows file.

We can see = whether it's something in the file if you pass the binary file (with th= e shebang) through xxd, and paste the output:

=A0 =A0 $ xxd /path/to/your/executable=

That = will give us the hex codes of the characters in your file, and we can see w= hether there's something dodgy in there.

Cheer= s

--
Jon Cairns

e-ma= il:=A0jon@joncairns.com
twitter= :=A0@joonty
--047d7b603bcedcfa5b04d51141d3--