Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" Subject: Re: perl -x doesn't recognize file as executable Date: Sun, 5 Jun 2005 19:14:35 +0200 Lines: 31 Message-ID: References: <42A32D8C DOT 9080408 AT scytek DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit 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/