Doh, scratch that. Echo (and Dir) produce \r\n, and Ruby strips it. -----Original Message----- From: Jim Deville [mailto:jdeville / microsoft.com] Sent: Wednesday, October 29, 2008 3:24 PM To: ruby-core / ruby-lang.org Subject: [ruby-core:19621] Re: Result of backticks Heh, I assumed that it was Ruby doing processing, but I just tried, and found out it's not Ruby. "echo" on Windows returns \n as well, so I think my original question was wrong. JD -----Original Message----- From: rogerpack2005 / gmail.com [mailto:rogerpack2005 / gmail.com] On Behalf Of Roger Pack Sent: Wednesday, October 29, 2008 3:16 PM To: ruby-core / ruby-lang.org Subject: [ruby-core:19620] Re: Result of backticks I'd guess that it returns "exactly whatever echo returns" which happens to return "\n" in Linux. I'd have to test it on windows. Thanks! -=R On Wed, Oct 29, 2008 at 3:19 PM, Jim Deville <jdeville / microsoft.com> wrote: > `echo disc world` returns "disc world\n" > > > > I'm wondering why this isn't platform independent. Why doesn't Ruby on > Windows return "disc world\n\r?" Is the behavior of returning only \n > officially the spec? Or is it implementation specific? > > > > ~~~~ > > JD > > http://blog.jredville.com > > -- Thanks! -=R