|
From: | J. Grant |
Subject: | Re: make 3.81 MinGW port and testsuite working with MSYS |
Date: | Mon, 28 Feb 2005 21:10:10 +0000 |
User-agent: | Mozilla/5.0 (X11; U; GNU/Linux i686; en; rv:1.5.0; hi) Gecko/20030604 |
Hi Alessandro, on the 28/02/05 08:32, Alessandro Vesely wrote:
"Paul D. Smith" wrote:>> 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"Yup, this works, but is redundant if using attach/detach _default_output. (On ActivePerl, stdio and stderr will not be synchronized anyway) Curiously, `sh -c "WHATEVER 2>&1 > $filename"' does not redirect as expected.
I think if I understand your point correctly there is a mistake in your point.
The setting the output redirect to $filename should come before the stderr -> stdout redirection.
So for instance: sh -c "make -fmissing.makefile >log.txt 2>&1" This will result in a "log.txt" file containing: make: missing.makefile: No such file or directory make: *** No rule to make target `missing.makefile'. Stop. Kind regards JG -- Homepage: http://jguk.org/ Blog: http://jguk.org/blog.rss Radio: http://jguk.org/#radio
[Prev in Thread] | Current Thread | [Next in Thread] |