Re: AS_EXECUTABLE_P again

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

 



-----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             ebb9@xxxxxxx
-----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-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux