Executable bit check
Illia Bobyr
Illia.Bobyr@ronin-capital.com
Thu Nov 4 21:57:00 GMT 2010
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
More information about the Cygwin-developers
mailing list