From: Hal Fulton Date: 2003-08-30T04:10:45+09:00 Subject: Re: Bug? (1.8.0) Daniel Carrera wrote: >>>>>p "#$" >>> >>>SyntaxError: compile error >>>(irb):22: unterminated string meets end of file >>> from (irb):22 >> >>Isn't $" also a special variable? > > > Okay, I would suggest the following behaviour would make most sense: > > p "#$" => '#$' > p "#{$"}" => contents of $" > > Thoughts? I'd rather just see the ugly variables go away. _The Ruby Way_ intentionally avoided their use. There are a few in there, but most are in code contributed by others. Rather than change the parser, I'd suggest that the nuby should be aware that #$ will interpolate a global variable if the rest of the variable name is valid. I've been playing in irb and this is making my head hurt. Personally I'd say: If you want a literal #$, then either escape the $ or use a non-interpolating string. Hal