Re: perl -x doesn't recognize file as executable

2005-07-04 Thread Corinna Vinschen
On Jul 2 06:39, Eric Blake wrote: > There are two 'test's - the bash builtin, and /bin/test from coreutils. > /bin/test uses access()/eaccess() > (/usr/src/coreutils-5.3.0/src/test.c:552, > /usr/src/coreutils-5.3.0/lib/euidaccess.c) to determine if a file is > executable, which should leave it ent

Re: perl -x doesn't recognize file as executable

2005-07-02 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Brian Dessent on 6/5/2005 7:31 PM: Sorry for a reply to an old thread, but I wanted to correct some misinformation: >>You mean special logic for windows file permissions (ACL?), not only >>using the owner/group/other scheme? > > I think

Re: perl -x doesn't recognize file as executable

2005-06-07 Thread Volker Quetschke
Yitzchak Scott-Thoennes wrote: (snip) perl only checks ACLs if you ask it to. What does: $ perl -e 'use filetest "access"; if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "not executable";}' not executable show? Thank you! Works like a charm :) Volker -- PGP/GPG key (ID: 0x9F8A7

Re: perl -x doesn't recognize file as executable

2005-06-06 Thread Gerrit P. Haase
Yitzchak Scott-Thoennes wrote: On Sun, Jun 05, 2005 at 06:31:31PM -0700, Brian Dessent wrote: Volker Quetschke wrote: You mean special logic for windows file permissions (ACL?), not only using the owner/group/other scheme? I think that it recognises files ending in ".exe" and special-cases

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Yitzchak Scott-Thoennes
On Sun, Jun 05, 2005 at 06:31:31PM -0700, Brian Dessent wrote: > Volker Quetschke wrote: > > > You mean special logic for windows file permissions (ACL?), not only > > using the owner/group/other scheme? > > I think that it recognises files ending in ".exe" and special-cases > them. > > > $ getf

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Brian Dessent
Volker Quetschke wrote: > You mean special logic for windows file permissions (ACL?), not only > using the owner/group/other scheme? I think that it recognises files ending in ".exe" and special-cases them. > $ getfacl /cygdrive/c/Programme/NSIS/NSIS.exe > # file: /cygdrive/c/Programme/NSIS/NSIS

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Volker Quetschke
Hi! $ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "executable" executable coreutils have special logic for binaries with .exe suffix, which is why this works. You mean special logic for windows file permissions (ACL?), not only using the owner/group/other scheme? $ perl -e 'if ( !

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Krzysztof Duleba
Gerrit P. Haase wrote: > When I test e.g. mozilla.exe which I'm not the owner: Good point. Changing the ownership of java.exe made perl to print "executable" in case of rwx-- permissions. Regards Krzysztof Duleba -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem r

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Brian Dessent
Volker Quetschke wrote: > $ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "executable" > executable coreutils have special logic for binaries with .exe suffix, which is why this works. > $ perl -e 'if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "not > executable";}' > not execu

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Gerrit P. Haase
Gerrit P. Haase wrote: Krzysztof Duleba wrote: Volker Quetschke wrote: I stumbled over the following problem, perl's -x doesn't recognize some files as executable, even though they are and test -x does. It works for me if the file is group or world executable. Works for me anyway, as

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Gerrit P. Haase
Krzysztof Duleba wrote: Volker Quetschke wrote: I stumbled over the following problem, perl's -x doesn't recognize some files as executable, even though they are and test -x does. It works for me if the file is group or world executable. Works for me anyway, as long as I am probing a Cyg

Re: perl -x doesn't recognize file as executable

2005-06-05 Thread Krzysztof Duleba
Volker Quetschke wrote: > I stumbled over the following problem, perl's -x doesn't recognize > some files as executable, even though they are and test -x does. It works for me if the file is group or world executable. $chmod a-x java.exe; ls -l java.exe -rw---+ 1 Administratorzy Brak 45161 M

perl -x doesn't recognize file as executable

2005-06-05 Thread Volker Quetschke
I stumbled over the following problem, perl's -x doesn't recognize some files as executable, even though they are and test -x does. (The following example uses nsis.exe but something like java.exe would show the same problem.) Examples: $ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "e