ports/58856: About lang/ruby18's fileutils vs ruby-shim-ruby18's fileutils
Fumihiko Kimura
jfkimura at yahoo.co.jp
Mon Nov 3 03:40:22 UTC 2003
>Number: 58856
>Category: ports
>Synopsis: About lang/ruby18's fileutils vs ruby-shim-ruby18's fileutils
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 02 19:40:18 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Fumihiko Kimura
>Release: FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
>Description:
I am a user of ruby.
There is a tool of fileutils.rb in lang/ruby18,
but movement in lang/ruby16-shim-ruby18 seems to be different.
I wanted to make it seem to be 'cp -Rp /home/fkimura /tmp'.
>How-To-Repeat:
sample script
---
#!/usr/bin/env ruby
require 'fileutils'
IN1 = "/home/fkimura"
module FileUtils16
def FileUtils16.cp_r(src, dest, *options)
begin
FileUtils.cp_r(src, dest, *options)
rescue TypeError
optionhash = {}
options.each { |o| optionhash[o] = true }
FileUtils.cp_r(src, dest, optionhash)
end
end
end
FileUtils16.cp_r("#{IN1}/", "/tmp", :preserve)
exit 0
---
- ruby1.6.8 + ruby-shim-ruby18 (using USE_RUBY_FEATURES=fileutils)
It was carried out to think in this case.
- ruby18
A file is copied after directory of fkimura was made under /tmp in this case.
Cannot you unify it?
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list