]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AS_TEST_PREPARE): Avoid bug in UnixWare
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Sep 2006 07:07:32 +0000 (07:07 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Sep 2006 07:07:32 +0000 (07:07 +0000)
7.1.4 /usr/bin/posix/sh described by Tim Rice in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.

lib/m4sugar/m4sh.m4

index f81d86a3fa7f40793bc881cfbdaeb6b2ce459f57..f2d6b2ff821b34a724dd9648753c9522f3658a49 100644 (file)
@@ -1021,10 +1021,7 @@ esac[]dnl
 m4_defun([_AS_TEST_PREPARE],
 [# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 # systems may use methods other than mode bits to determine executability.
-cat >conf$$.file <<_ASEOF
-#! /bin/sh
-exit 0
-_ASEOF
+echo '#! /bin/sh' >conf$$.file
 chmod +x conf$$.file
 if test -x conf$$.file >/dev/null 2>&1; then
   as_executable_p="test -x"