From: Stefano Crocco Date: 2010-09-29T18:06:49+09:00 Subject: Re: unknown regexp options On Wednesday 29 September 2010, Gary Rutledge wrote: > |When I try to "require", "load" or use rdoc on a .rb file in IRB I get > |the error > | > |"SyntaxError: compile error > |(irb):5: unknown regexp options - gary > | from (irb):5" > | > | > |Also, i'm using the preloaded irb on my mac which uses ">>" instead of > |"irb(main):002:0>" at the command line. It'd be nice to have that > |feature to know if I'm still coding within an object. > | > |I can't seem to find anything on either problem on the net. Your help is > |greatly appreciated! I don't have a mac, so I'm guessing. Have you perhaps a .irbrc file in your home directory? If so, then maybe that is the cause for both behaviours you get. Try running irb with the -f command line option, which disables reading the .irbrc file, and see what happens. Regarding the prompt issue, the >> prompt can be obtained by using the --simple-prompt command line option, so maybe you can override this passing the --prompt-mode default option. I hope this helps Stefano