Actually, further investigation yields the following (what I consider to
be) inconsistency:

  $ echo 'all: ;' | make -q -f- ; echo $?
  0

  $ echo 'all: ; $X' | make -q -f- ; echo $?
  1

To me, that's wrong; you should get the same result with a completely
empty string as you do with a variable that resolves to the empty
string.

I see why the first results in a 0; there's a shortcut if the commands
are truly completely empty which results in make thinking that no actual
commands of any sort have been run, and that doesn't hold true if
there's any text at all, even just a variable that resolves to nothing;
in that case make doesn't fork a shell but it does think it ran a
command.

I _think_ it would be simple to fix it so it gave a result of 1 in both
cases, but I think a 0 result is reasonable for both cases.

Let me think more about it.

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

Reply via email to