Hi -- On Thu, 9 Dec 2004 noreply / rubyforge.org wrote: > Bugs item #1173, was opened at 2004-12-08 17:35 > You can respond by visiting: > http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1173&group_id=426 > > Category: Core > Group: None > Status: Open > Resolution: None > Priority: 5 > Submitted By: Andrew Eland (andreweland) > Assigned to: Nobody (None) > Summary: Incorrect escaping in strings produced by String::inspect > > Initial Comment: > The following causes a runtime syntax error: > eval('Foo #@ bar'.inspect) > > I'm not sure if that use-case is supposed to be supported, but I think a number of applications rely on it. I don't think it's inspect or eval specific. irb(main):001:0> "#@a" => "" but irb(main):002:0> "#@" SyntaxError: compile error (irb):2: syntax error (irb):2: unterminated string meets end of file similarly for "#{" -- basically anything where it looks like it's going to be an interpolation but then isn't. I don't know whether this is desired/optimal behavior or not. David -- David A. Black dblack / wobblini.net