The content of the file is just:

puts "test"

The irb session is:

>> load /Users/gary/Desktop/test.rb 
SyntaxError: compile error
(irb):3: unknown regexp options - gary
  from (irb):3
>> 

The .rb file was written in textedit with no rich text.  I was using 
netbeans and my theory was that netbeans was  throwing in some meta data 
with the file location that ruby was picking up and processing as a 
regular expression. But textedit is the same so I don't think that's the 
problem.
-- 
Posted via http://www.ruby-forum.com/.