Issue #4980 has been reported by Michael Schnupp.

----------------------------------------
Bug #4980: rbinstall.rb will not install command scripts if the path contains a hidden directory
http://redmine.ruby-lang.org/issues/4980

Author: Michael Schnupp
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [ia64-hpux11.31]


I tried to compile and install ruby from a longish path containing a hidden directory somewhere in the middle of the path.

While installing the "command scripts" rbinstall.rb containts the following line:
next if /\/[.#]|(\.(old|bak|orig|rej|diff|patch|core)|~|\/core)$/i =~ src

The first part of the regex should probably only match on the basename of the file to install. But as src contains the absolute path of the file it will match all files if the path contains a hidden directory somewhere. (Which it did in my case.)

I currently pached it with a small sed-script:
sed -i 's=\[\.#\]|=[.#][^\\\/]*$|=' ruby*/tool/rbinstall.rb

But the nicer solution is probably to match on the basename only.


-- 
http://redmine.ruby-lang.org