Project

General

Profile

Actions

Bug #1418

closed

File.join repeats recursive array contents

Added by brixen (Brian Shirai) almost 15 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.8.8dev (2009-04-28 revision 23305) [i386-darwin9.6.0]
[ruby-core:23329]

Description

=begin
This was fixed for Array#join, see [ruby-dev:37019].

$ ruby1.8 -v
ruby 1.8.8dev (2009-04-28 revision 23305) [i386-darwin9.6.0]

$ ruby1.8 file.rb
"a/b"
"a/b/a/b/[...]"

$ cat file.rb
a = ["a", "b"]
p File.join(a)
a << a
p File.join(a)

Behavior on 1.8.6, 1.8.7, 1.8.8 and 1.9 is the same.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0