bug-make
[Top][All Lists]
Advanced

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

Re: [7606] shell builtin "test" not invoked if appears alone


From: Paul D. Smith
Subject: Re: [7606] shell builtin "test" not invoked if appears alone
Date: Fri, 6 Feb 2004 12:00:50 -0500

%% <address@hidden> writes:

  k> POSIX says the line should be processed like system("test")
  k> which will be execvp("/bin/sh","-c","test") which will succeed,

  k> but GNU make tries to optimize avoiding /bin/sh,
  k> which tries execvp("test") and fails.

  k> GNU automake uses this bare "test" in several testsuite.

I don't have a problem making this change but I'm curious as to what
kind of command line in a makefile rule would use test(1) but not use
any other special character that would cause make to kick the command to
the slow path?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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