Date: Mon, 3 Nov 2003 11:30:26 +0900 (JST) From: Fumihiko Kimura <jfkimura@yahoo.co.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/58856: About lang/ruby18's fileutils vs ruby-shim-ruby18's fileutils Message-ID: <200311030230.hA32UQ9W068081@ns.vs.org> Resent-Message-ID: <200311030340.hA33eIIP035557@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311030230.hA32UQ9W068081>