| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| From: | "Krzysztof Duleba" <krzysan AT skrzynka DOT pl> |
| Subject: | Re: perl -x doesn't recognize file as executable |
| Date: | Sun, 5 Jun 2005 19:14:35 +0200 |
| Lines: | 31 |
| Message-ID: | <d7vbdm$va8$1@sea.gmane.org> |
| References: | <42A32D8C DOT 9080408 AT scytek DOT de> |
| Mime-Version: | 1.0 |
| X-IsSubscribed: | yes |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |