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 Message-ID: <42A35971.8C69A2C5@dessent.net> Date: Sun, 05 Jun 2005 12:58:41 -0700 From: Brian Dessent MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: perl -x doesn't recognize file as executable References: <42A32D8C DOT 9080408 AT scytek DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Volker Quetschke wrote: > $ test -x "/cygdrive/c/Programme/NSIS/NSIS.exe" && echo "executable" > executable coreutils have special logic for binaries with .exe suffix, which is why this works. > $ perl -e 'if ( ! -x "/cygdrive/c/Programme/NSIS/NSIS.exe" ) {print "not > executable";}' > not executable Technically the file is not executable: > $ id -a > uid=1001(q) gid=513(none) > groups=0(root),513(none),544(Administratoren),545(Benutzer) > > Here are some informations about the file: > > $ ls -l /cygdrive/c/Programme/NSIS/NSIS.exe > -rwx------+ 1 Administratoren none 254976 Nov 10 2003 > /cygdrive/c/Programme/NSIS/NSIS.exe* The permissions on the file indicate that it is only executable by the owner (Administratoren) which is not the account you are running the command from. If you add +x for the group or chown the file it should work. Brian -- 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/