Bugs item #7262, was opened at 2006-12-14 00:19 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7262&group_id=426 Category: Core Group: 1.8.2 Status: Open Resolution: None Priority: 3 Submitted By: Russ Daigle (rdaigle0072) Assigned to: Nobody (None) Summary: Bug in string literal '\c' Initial Comment: Evaluation of string literal '\c' should return "\c". However, if in IRB you type '\c'..... and it returns the following prompt to you irb(main):001:0> '\c' irb(main):002:0' However, if you enter '\d', it returns "\d" as you'd expect. irb(main):003:0> '\d' => "\d" irb(main):004:0> My guess is because it is expecting that '\c' is the beginning of '\cx' (which has a substitution in double-quote literals).... but there is never that additional character following '\c' Note the following occurs when any character follows '\c' irb(main):010:0> '\ca' => "\ca" ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7262&group_id=426