cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs

Scott McPeak smcpeak@coverity.com
Thu May 14 00:04:00 GMT 2015


 > Just a wild guess here: line endings?  Try
 >
 > make 2>&1 | cat -A
 >
 > and see if everything's there.

This is of course easy for anyone to try using the reproducer I attached:

   $ make 2>&1 | cat -A
   echo first > output$
   echo secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> 
output$
   /cygdrive/c/Windows/System32/sort.exe nonexist 2>> output; true$
   ----- BEGIN output -----$
   nonexistThe system cannot find the file specified.^M^M$
   xxxxxxxxxxxxxx$
   ----- END output -----$

The output is still wrong.

-Scott

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list