Project

General

Profile

Actions

Bug #2135

closed

File.executable? returns spurious true's in windows

Bug #2135: File.executable? returns spurious true's in windows

Added by rogerdpack (Roger Pack) about 16 years ago. Updated over 14 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32]
Backport:
[ruby-core:25718]

Description

=begin
install hanna gem

C:\ruby\bin>irb
irb(main):001:0> File.executable? 'hanna'
=> true

though this file is not actually executable.
Same thing results thing with all versions of ruby.
Thanks!
=end

Updated by djberg96 (Daniel Berger) about 16 years ago Actions #1

=begin
Last I heard the IronRuby folks punted and simply went with checking for an .exe extension.
=end

Updated by usa (Usaku NAKAMURA) about 16 years ago Actions #2

  • Assignee set to usa (Usaku NAKAMURA)

=begin
for workaround, use File.stat('hanna').executable?
=end

Updated by usa (Usaku NAKAMURA) about 16 years ago Actions #3

  • Status changed from Open to Closed

=begin
fixed at r25092.
=end

Actions

Also available in: PDF Atom