autoconf
[Top][All Lists]
Advanced

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

Re: AS_EXECUTABLE_P again


From: Eric Blake
Subject: Re: AS_EXECUTABLE_P again
Date: Fri, 21 Jan 2005 07:17:17 -0700
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> But this may cause problems on MS-DOS derivations.
> Lets suppose that we have a file named foo.exe, but not foo.
> Both DJGPP and Cygwin have extensions which cause `test -x foo' to succeed.
> But `test -f' fails, so the whole AS_EXECUTABLE_P(foo) fails too.

Actually, `test -f foo' only fails on foo.exe on DJGPP (at least,
according to claims - I don't have a DJGPP environment to test on) - it
works on cygwin.
$ gcc -o foo foo.c
$ ls
foo.c foo.exe
$ test -f foo; echo $?
0
$ test -x foo; echo $?
0
$ test -f none; echo $?
1
$ test -x none; echo $?
1


- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB8Q7t84KuGfSFAYARAsbhAKC13dUDV0IpUaWTy7rfgLciWgR3FACggXCS
N63uBaBZW+vKQ3VwPNFHRKs=
=RC3B
-----END PGP SIGNATURE-----




reply via email to

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