From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18438 invoked by alias); 23 Feb 2012 16:19:46 -0000 Received: (qmail 18428 invoked by uid 22791); 23 Feb 2012 16:19:43 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-we0-f171.google.com (HELO mail-we0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 16:19:26 +0000 Received: by werb14 with SMTP id b14so1082803wer.2 for ; Thu, 23 Feb 2012 08:19:25 -0800 (PST) Received-SPF: pass (google.com: domain of beylin.i@gmail.com designates 10.180.95.1 as permitted sender) client-ip=10.180.95.1; Authentication-Results: mr.google.com; spf=pass (google.com: domain of beylin.i@gmail.com designates 10.180.95.1 as permitted sender) smtp.mail=beylin.i@gmail.com; dkim=pass header.i=beylin.i@gmail.com Received: from mr.google.com ([10.180.95.1]) by 10.180.95.1 with SMTP id dg1mr4296857wib.21.1330013965395 (num_hops = 1); Thu, 23 Feb 2012 08:19:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.95.1 with SMTP id dg1mr3498270wib.21.1330013965341; Thu, 23 Feb 2012 08:19:25 -0800 (PST) Received: by 10.223.88.146 with HTTP; Thu, 23 Feb 2012 08:19:25 -0800 (PST) Date: Thu, 23 Feb 2012 16:19:00 -0000 Message-ID: Subject: 1.7.10 : output from .NET programs does not get through pipeline From: Ilya Beylin To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-02/txt/msg00690.txt.bz2 Hi all, I started observing some very strange effects when launching .NET programs from cygwin, after upgrading to version 1.7.10. The example below is using the MSBuild.exe as an example, but I get analogous results with any console program compiled for .NET. One can see that each pipeline works normally exactly once. The second time the pipe does not bring anything. I do not know if it is possible to reset it; killing all cygwin processes and logging off apparently does not help. $ MSBuild.exe -version Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3625] Copyright (C) Microsoft Corporation 2007. All rights reserved. 3.5.30729.1 $ MSBuild.exe -version | head -1 Microsoft (R) Build Engine Version 3.5.30729.1 $ MSBuild.exe -version | head -1 $ MSBuild.exe -version | wc 4 20 177 $ MSBuild.exe -version | wc 0 0 0 One program that surprisingly does not get broken so easily is "perl" $ MSBuild.exe -version | perl -ne print | wc 4 20 177 $ MSBuild.exe -version | perl -ne print | wc 4 20 177 Output from normal DOS, windows and cygwin programs is not affected. Output redirection with ">" works as usual. Command substitution with $( ) or ` ` does not work if the output comes from .NET program: $ echo +++ `MSBuild /help` +++ +++ +++ $ echo +++ `MSBuild.exe /help>tmp.tmp ; dos2unix tmp.tmp; head tmp.tmp` +++ dos2unix: converting file tmp.tmp to Unix format ... +++ Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3625] Copyright (C) Microsoft Corporation 2007. All rights reserved. Syntax: MSBuild.exe [options] [project file] Description: Builds the specified targets in the project file. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in "proj" and uses that file. +++ I get similar results on other computers running Windows XP, Vista and 7 with 1.7.10 installed, but not with 1.7.9. Have you seen anything like this? How can it be fixed? Regards Ilya Beylin -- 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