From: nobu.nokada@... Date: 2004-07-17T23:10:01+09:00 Subject: Re: Bug? String literal %s{#{a}} cause irb to abort Hi, At Sat, 17 Jul 2004 22:40:34 +0900, Alexey Verkhovsky wrote in [ruby-talk:106711]: > // Another odd behavior > irb(main):002:0> a = %s > irb(main):003:0: > // expected: SyntaxError > // actual: an "empty symbol" value is assigned to a It is actually same as: $ ruby -e '%s' -e '' -e:2: empty symbol literal i.e., a symbol litral terminated by \n. > irb(main):004:0> a > SyntaxError: compile error But I don't know why it delays until the next line; this would be an irb issue. -- Nobu Nakada