From: Hugh Sasse Date: 2010-01-28T22:11:46+09:00 Subject: [ruby-core:27928] [Bug #2669] mkmf find_executable doesn't find .bat files Issue #2669 has been updated by Hugh Sasse. Under cygwin, I have lots of .bat files which are not executable (according to ls -l). Indeed, under Ruby 1.8, my rdoc.bat is not: hgs@Q2P14HGS /bin 12:58:47$ ls -ld rdoc.bat -rw-r--r-- 1 hgs None 141 Apr 27 2009 rdoc.bat hgs@Q2P14HGS /bin 12:58:59$ wc !$ wc rdoc.bat 6 26 141 rdoc.bat hgs@Q2P14HGS /bin 12:59:17$ more rdoc.bat @ECHO OFF IF NOT "%~f0" == "~f0" GOTO :WinNT @"ruby.exe" "/usr/bin/rdoc" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @"ruby.exe" "%~dpn0" %* hgs@Q2P14HGS /bin 12:59:23$ file rdoc.bat rdoc.bat: MS-DOS batch file text hgs@Q2P14HGS /bin 13:01:54$ In fact, most in /cygwin/bin are not executable according to ls. And... hgs@Q2P14HGS /bin 13:05:07$ irb irb(main):001:0> File.executable?('/bin/rdoc.bat') => false irb(main):002:0> So we have one part of Ruby installing batch files to be executed, and another part saying they are not executable. True, they are not marked as executable according to the bits. Does this mean we need another method of File, to distinguish these cases? If so, then we probably need to think about the Windows Scripting Host. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2669 ---------------------------------------- http://redmine.ruby-lang.org