This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 Mar  8 19:49 java.exe

$ perl -e '-x "java.exe" and print "OK\n";'

$ chmod +x java.exe; ls -l java.exe
-rwx------+ 1 Administratorzy Brak 45161 Mar  8 19:49 java.exe

$ perl -e '-x "java.exe" and print "OK\n";'

$ chmod g+x java.exe; ls -l java.exe
-rwx--x---+ 1 Administratorzy Brak 45161 Mar  8 19:49 java.exe

$ perl -e '-x "java.exe" and print "OK\n";'
OK

$ chmod a+x java.exe; ls -l java.exe
-rwx--x--x+ 1 Administratorzy Brak 45161 Mar  8 19:49 java.exe

$ perl -e '-x "java.exe" and print "OK\n";'
OK

Regards
Krzysztof Duleba


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]