From: Adam Prescott Date: 2011-07-07T21:56:20+09:00 Subject: [ruby-core:37846] Re: [Ruby 1.8 - Bug #4986][Open] Parsing bug in irb: "#{"//"}" On Thu, Jul 7, 2011 at 6:03 AM, Brad Grzesiak wrote: > > When issuing the following command in irb, it believes it's in the middle of a regexp, rather than returning a string with two slashes: > > �� ��"#{"//"}" > > While this doesn't seem all that common, it has the same problem with the following string: > > �� ��"#{Time.now.strftime("%m/%d/%Y")}" > > irb version is: irb 0.9.5(05/04/13) > Works fine for me on a later version of IRB. ruby-1.9.2-p180 :001 > IRB.version => "irb 0.9.6(09/06/30)" ruby-1.9.2-p180 :002 > "#{"//"}" => "//" ruby-1.9.2-p180 :003 > "#{Time.now.strftime("%m/%d/%Y")}" => "07/07/2011"