bug-make
[Top][All Lists]
Advanced

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

Re: [Fwd: isatty function?]


From: mst
Subject: Re: [Fwd: isatty function?]
Date: Thu, 12 Sep 2002 01:13:55 +0200
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1) Gecko/20020826

Paul D. Smith wrote:

%% mst <address@hidden> 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.






reply via email to

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