perl -x doesn't recognize file as executable
Krzysztof Duleba
krzysan@skrzynka.pl
Sun Jun 5 17:10:00 GMT 2005
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/
More information about the Cygwin
mailing list