This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Executable bit check
- From: "Illia Bobyr" <Illia dot Bobyr at ronin-capital dot com>
- To: <cygwin-developers at cygwin dot com>
- Date: Thu, 4 Nov 2010 16:57:28 -0500
- Subject: Executable bit check
Hi,
It seems that Cygwin does not check for executable bit before it allows
a script to run, does it?
$ rm abc
$ cat <<EOF >abc
> #!/bin/sh
> echo Hm...
> EOF
$ ll abc
-rw-r--r--+ 1 ibobyr Domain Users Nov 21 4 16:44 abc
$ test -x abc && echo Executable
Executable
$ ./abc
Hm...
I was able to find some references to a "patch for this [that is] ready"
here:
http://omgili.com/mailinglist/cygwin/cygwin/com/4A3D15705020506aimcom.html
Reply by Corinna Vinschen on Mon, 22 Jun 2009 15:11:44 +0200.
For some reason I do not see above mail in the cygwin.com mailing list
archive (http://cygwin.com/ml/cygwin/2009-06/index.html).
For me the most annoying part is that "test -x" says that I can execute
a file that I just did "chmod -x" on.
Ilya Bobyr