diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 12:32:31 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 12:32:31 +0000 |
| commit | 6d84972bd5c944188cb02ccf24a763893fe20357 (patch) | |
| tree | 7e937be6b209ef81caa91e4f00a89ec7fbec56af | |
| parent | 33370f60c21a91603d973acfeba5594c913a33e0 (diff) | |
* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". [ruby-core:02843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/fileutils.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri May 7 21:31:56 2004 Minero Aoki <aamine@loveruby.net> + + * lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". + [ruby-core:02843] + Fri May 7 11:25:53 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * util.c (ruby_strtod): 0.0000000000000000001 == 0.0 should be false. diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 8b4ec9d803..99e4feeaa3 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -717,7 +717,7 @@ module FileUtils end def fu_list(arg) - Array(arg).map {|path| path.to_str } + [arg].flatten.map {|path| path.to_str } end def fu_each_src_dest(src, dest) |
