[#1611] set_trace_func/Array#fetch error — "Nathaniel Talbott" <nathaniel@...>

I've reduced the error I reported in ruby-talk:84013 to the following code:

17 messages 2003/10/11

String#gsub bug?

From: "Gavin Sinclair" <gsinclair@...>
Date: 2003-10-03 06:34:46 UTC
List: ruby-core #1575
Is this a bug in Ruby or a bug in my brain?  I've stared at it for long
enough.

  "xyz".gsub(/[ \t]*$/, "")    # -> "xyzxyz"
   "xyz".gsub(/[ \t]*$/, "F")  # -> "xyzFxyz"

Ruby 1.8.0, Cygwin.

Slapping my forehead in advance,
Gavin




In This Thread

Prev Next