Paul D. Smith wrote:

>%% mst <[EMAIL PROTECTED]> writes:
>
>  m> How about a way to call "system" without catching stdout, let
>  m> stdout be copied as is to the child process?
>
>Hmm.  Maybe.  I still don't know that it's that useful.
>  
>
I know I wanted to get the exit status of the program into a variable 
many times.
This would be possible:

ifeq ($(system test -e filename),0)
--FILE exists
else
--FILE does not exist
endif

Quite natural, isn't it? This makes it possible to easily avoid
most needs to call perl for this kind of stuff.

That stdout is not touched is just a byproduct then.

Another example: print date to stdout while makefile is evaluated:

dummy:=$(shell date)

>Why don't you just test STDERR instead of STDOUT?
>
>Make doesn't redirect STDERR.
>  
>

Donnu. You are right here.




_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to