make-w32
[Top][All Lists]
Advanced

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

Re: make 3.81 MinGW port and testsuite working with MSYS


From: Paul D. Smith
Subject: Re: make 3.81 MinGW port and testsuite working with MSYS
Date: Sun, 27 Feb 2005 16:14:32 -0500

%% "Eli Zaretskii" <address@hidden> writes:

  >> It won't work on a win32 perl, because of the `2>&1'. Of course,
  >> we need a unixy shell to run the tests, but AFAIK there's no way
  >> to let perl also use it.

  ez> Really?  Can't you run the command via sh.exe explicitly, i.e. use the
  ez> command

  ez>     sh -c "WHATEVER 2>&1"

  ez> ?  (Note that the redirection must be inside the quotes, so that sh
  ez> interprets it.)  I'd expect this to DTRT even on Windows.

Alessandro's point is that my suggested "improvement" is using Perl's
open() with a pipe and redirection rather than using system, so no shell
would be invoked.

I was assuming that since redirection in an open() call is documented by
Perl, that Perl would handle that itself rather than relying on the
shell to implement it.  I guess not :-/.

-- 
-------------------------------------------------------------------------------
 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]