[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATH_SEPARATOR test and djgpp

From: Stepan Kasal
Subject: Re: PATH_SEPARATOR test and djgpp
Date: Wed, 19 Jan 2005 18:42:54 +0100
User-agent: Mutt/1.4.1i


On Tue, Jan 18, 2005 at 05:52:40PM -0500, Karl Berry wrote:
> Also an issue about test -x.  Are there still current systems which do
> not support test -x?  I'm somewhat dubious.  It was an important issue
> 10 years ago, not so sure about today.

the biggest problem with test -x is that it also catches executable

So if you want to test for an executable file, you have to run test -f
and test -x.

FYI, current autoconf implementation of AS_EXECUTABLE_P is

        { test -f $1 && $as_executable_p $1; }dnl

where as_executable_p is either `test -x' or `:' according to whether
test -x works on the system.
See autoconf/lib/m4sugar/m4sh.m4 for details.

I hope my note is not too much irrelevant here.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]