[#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: "Gavin Sinclair" <gsinclair@...>
Date: 2003-10-03 08:29:57 UTC
List: ruby-core #1578
> 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.

That's what I expect, too.  I'll try again and make sure I've got the
latest Ruby.

Thanks,
Gavin



In This Thread

Prev Next