[#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

Re: String#gsub bug?

From: bruceb3@...
Date: 2003-10-03 06:55:47 UTC
List: ruby-core #1577
On Fri, Oct 03, 2003 at 03:34:46PM +0900, Gavin Sinclair wrote:
>   "xyz".gsub(/[ \t]*$/, "")    # -> "xyzxyz"
>    "xyz".gsub(/[ \t]*$/, "F")  # -> "xyzFxyz"
> 
> Ruby 1.8.0, Cygwin.

I can't reproduce the output you are showing.

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

[bruceb3@senselss tmp]$ ruby -v
ruby 1.8.0 (2003-08-04) [i686-linux]

*shrug*

The values I am seeing is what I would expect.


-bruce.

In This Thread