From: Run Paint Run Run Date: 2010-11-15T10:07:52+09:00 Subject: [ruby-core:33182] [Ruby 1.9-Bug#4057][Open] FileUtils.copy with FIFOs and Special Devices Bug #4057: FileUtils.copy with FIFOs and Special Devices http://redmine.ruby-lang.org/issues/show/4057 Author: Run Paint Run Run Status: Open, Priority: Low Category: lib ruby -v: ruby 1.9.3dev (2010-11-13 trunk 29773) [x86_64-linux] In http://redmine.ruby-lang.org/repositories/diff/ruby-19?rev=6747 support for copying FIFOs and special devices was added to FileUtils.copy, and the same code exists in trunk. It relies on the existence of File.mknod and File.mkfifo. According to git's "pickaxe", those methods have never existed. Various patches to add this functionality have been sent to ruby-core, but in http://www.ruby-forum.com/topic/144168 matz rejected the idea. So, presumably, either these checks should be removed from FileUtils such that it raises an exception when a special device is encountered, or we should replace them with calls to the `mknod`/`mkfifo` commands. For me, the following just hangs: run@paint:~$ mkfifo fifo run@paint:~$ ruby -rfileutils -e 'FileUtils.copy("fifo", "lifo")' ---------------------------------------- http://redmine.ruby-lang.org