From 020ece97bd81196a4b277d8bfb08e3f5912894dc Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 11 Jun 2019 12:05:04 -0700 Subject: [PATCH] Update documentation for File.executable{,_real}? to mention Windows issues Fixes [Bug #15564] --- file.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/file.c b/file.c index 3da358af1f..aa3a33a3a1 100644 --- a/file.c +++ b/file.c @@ -1913,6 +1913,10 @@ rb_file_world_writable_p(VALUE obj, VALUE fname) * * Returns true if the named file is executable by the effective * user and group id of this process. See eaccess(3). + * + * Windows does not support execute permissions separately from read + * permissions. On Windows, a file is only considered executable if it ends in + * .bat, .cmd, .com, or .exe. */ static VALUE @@ -1928,6 +1932,10 @@ rb_file_executable_p(VALUE obj, VALUE fname) * * Returns true if the named file is executable by the real * user and group id of this process. See access(3). + * + * Windows does not support execute permissions separately from read + * permissions. On Windows, a file is only considered executable if it ends in + * .bat, .cmd, .com, or .exe. */ static VALUE -- 2.21.0