From: Chris White Date: 2011-08-20T04:45:18+09:00 Subject: Re: Accidentally killing coreutils - an idea to use ruby? > Now here is my fairly odd question - when I run something like > "./configure" and it is checking for something like "cp", and if it can > not find it, it will state "cp: command not found", or something, is > there a way to somehow use ruby instead of that? > > For example, "cp" could perhaps be a ruby file and inside that file > could be > > require 'fileutils' > FileUtils.cp > > Would that work? Not without some effort. To work with any configure script it would have to handle all potential command line arguments for cp (such as recursive copy, copy with all permissions in tact, etc.). Also anything specific to the system (linux, bsd, solaris, etc). In other words I'm not sure I'd recommend it. Regards, Chris White http://www.twitter.com/cwgem