On Wednesday 29 September 2010, Gary Rutledge wrote:
> |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.

The path of the file should be a string:

load '/Users/gary/Desktop/test.rb'

Stefano