[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

[ ruby-Bugs-3245 ] irb attempts to escape '\c' inside single quotes

From: <noreply@...>
Date: 2007-05-06 13:37:49 UTC
List: ruby-core #11103
Bugs item #3245, was opened at 2006-01-12 11:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3245&group_id=426

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Cash Erler (olathe)
Assigned to: Nobody (None)
Summary: irb attempts to escape '\c' inside single quotes

Initial Comment:
Standalone Ruby code handles '\c' properly :

$ ruby -e " p '\c' "
"\c"

irb waits for you to tell it which control character you want (\cn is Ctrl-N, for instance), which is probably proper for double-quoted version, but not the single-quoted version :

irb(main):006:0> '\c' 
irb(main):007:0' '
SyntaxError: compile error
(irb):7: unterminated string meets end of file
        from (irb):7


----------------------------------------------------------------------

Comment By: Dominic Cooney (dcooney)
Date: 2007-05-06 06:37

Message:
I have submitted patch 6366 to fix this.

----------------------------------------------------------------------

Comment By: Dominic Cooney (dcooney)
Date: 2006-10-27 15:42

Message:
This bug also affects %q, i.e. %q!\c! exhibits the same problem.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3245&group_id=426

In This Thread

Prev Next