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



_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to