Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6703

Ruby on Mac OS X

Date 2012-12-19 09:14 -0800
From Paul Magnussen <magiconinc@earthlink.net>
Organization Magicon Inc.
Newsgroups comp.lang.ruby
Subject Ruby on Mac OS X
Message-ID <auWdnbRy8eJ6aEzNnZ2dnUVZ_qednZ2d@earthlink.com> (permalink)

Show all headers | View raw


HI,

I'm learning Ruby on OS 10.4.11 (yes, I know, I'll be getting a new Mac 
next year).

When I use irb and type straight into the Terminal application, 
everything works fine.  When I create the source file with a text editor 
and use the ruby command to interpret and execute it, however, I get a 
syntax error.

This appears to be caused by the fact that the Mac OS uses CR to 
terminate lines, whereas UNIX expects LF: when I use BBedit to save in 
UNIX format, the syntax errors disappear.

I notice that XCode in 10.5 save its source in UNIX format also.

Does anyone know if this behaviour has changed in later implementations? 
  i.e. will they accept text in Mac or Windows formats?  Or must all 
source be converted to UNIX format?

Thanks.

Paul Magnussen

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar


Thread

Ruby on Mac OS X Paul Magnussen <magiconinc@earthlink.net> - 2012-12-19 09:14 -0800
  Re: Ruby on Mac OS X Doc O'Leary <droleary.usenet@4q2012.subsume.com> - 2012-12-20 11:12 -0600
    Re: Ruby on Mac OS X Paul Magnussen <magiconinc@earthlink.net> - 2012-12-21 08:29 -0800

csiph-web