From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17302 invoked by alias); 9 Mar 2012 18:47:49 -0000 Received: (qmail 17291 invoked by uid 22791); 9 Mar 2012 18:47:48 -0000 X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mout.perfora.net (HELO mout.perfora.net) (74.208.4.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Mar 2012 18:47:36 +0000 Received: from JamesJPC (75-146-80-177-Chattanooga.hfc.comcastbusiness.net [75.146.80.177]) by mrelay.perfora.net (node=mrus2) with ESMTP (Nemesis) id 0MGAuN-1SBKK22fRP-00ElvQ; Fri, 09 Mar 2012 13:47:34 -0500 From: "James Johnston" To: References: <004e01ccfd70$c69af3f0$53d0dbd0$@motionview3d.com> <005c01ccfd79$6341f980$29c5ec80$@motionview3d.com> In-Reply-To: Subject: RE: Can't reliably redirect standard output from C# program in recent Cygwin Date: Fri, 09 Mar 2012 18:47:00 -0000 Message-ID: <007201ccfe25$130065e0$390131a0$@motionview3d.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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-03/txt/msg00315.txt.bz2 I can reproduce this: C:\cygwin\bin>perl -e 'print "abc";' abc C:\cygwin\bin>perl -e 'print "abc";' | more abc C:\cygwin\bin>perl -e 'print "abc";' | more abc C:\cygwin\bin>perl -e 'print "abc";' | more C:\cygwin\bin>perl -e 'print "abc";' | more C:\cygwin\bin>perl -e 'print "abc";' | more I also noticed that the failures took 1 or 2 seconds to run - a significant delay. The successful runs completed "instantly". James -----Original Message----- Sent: Friday, March 09, 2012 01:24 Subject: Re: Can't reliably redirect standard output from C# program in recent Cygwin I've just noticed what sounds like the same issue: On Windows 7, in a 'cmd' window (at a 'cmd' prompt) doing the following fails more often than not: perl -e 'print "abc";' | \cygwin\bin\more That is: "abc" does not always display on the screen after the command is executed. I note that the problem does not seem to happen in a mintty window or in bash started from a 'cmd' window. I'm running cygwin perl 5.14 with an up-to-date cygwin. Bill Meier (I'm replying using gmane so as to keep the reply threaded not knowing how else to do this). aspell-en 7.1.0-1 OK base-cygwin 3.0-1 OK base-files 4.1-1 OK base-passwd 3.1-2 OK bash 4.1.10-4 OK binutils 2.22.51-1 OK bison 2.4.2-1 OK build-docbook-catalog 1.5-2 OK bzip2 1.0.6-2 OK ca-certificates 1.81-1 OK coreutils 8.15-1 OK cpio 2.11-1 OK crypt 1.1-1 OK csih 0.9.5-1 OK ctags 5.8-1 OK cygrunsrv 1.40-1 OK cygutils 1.4.8-1 OK cygwin 1.7.11-1 OK cygwin-doc 1.7-1 OK dash 0.5.7-1 OK ... patchutils 0.3.2-1 OK perl 5.14.1-2 OK perl_manpages 5.10.1-5 OK ping 1.0-1 OK ... -- 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