This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: perl -x doesn't recognize file as executable
- From: "Krzysztof Duleba" <krzysan at skrzynka dot pl>
- To: cygwin at cygwin dot com
- Date: Sun, 5 Jun 2005 19:14:35 +0200
- Subject: Re: perl -x doesn't recognize file as executable
- References: <42A32D8C.9080408@scytek.de>
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/