X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=us9FeOiStcrbgFXQ bIXfD+Q7r4u7n3/a4ApkJavkLEl1Ch3WW3+51F/KSywy0FrygBdR8xudNDFf1jfC zZ5W4kMyojixytyRcYF4kOTxflZxhC5mm5Gf5vY5elxnuI+dbnYiVKB5JLWqZv4w yW73XW2KTW6mY/3CDX8+Q30R/UE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=58DTmrJ7+7jOhILNe/3oFj PWxEQ=; b=b6Gh518AfFST231TSMHYIAs5NsvB7vt3pyNzXmtOgtswuqzXhN6L0r w1ODDV3cKUNi7biLgb4B6GPmB96SjmTjq4QFkS7Qaumgca7ks89EJjKJaOrVXIqZ 4a+yci+BlwY8Qs5ntn4c1RpYs24KGd1TC01JXQu4Yww7dmZWsJALE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f170.google.com X-Received: by 10.180.21.175 with SMTP id w15mr96964wie.58.1438810501790; Wed, 05 Aug 2015 14:35:01 -0700 (PDT) Subject: Re: Pipe behaviour broken with Cygwin 2.2.0-1 To: cygwin AT cygwin DOT com References: <7C6531D1-F23D-4FD1-8897-7BBAC809CE90 AT mac DOT com> <1815054412 DOT 20150805194907 AT yandex DOT ru> From: Marco Atzeri Message-ID: <55C2817F.7090102@gmail.com> Date: Wed, 5 Aug 2015 23:34:55 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 05/08/2015 23:09, Nem W Schlecht wrote: > On Wed, Aug 5, 2015 at 11:49 AM, Andrey Repin wrote: > >> >>> I’ve noticed that the following is broken in Cygwin 2.2.0-1. It works in Cygwin 2.1.0-1. >> >>> yes | head -10 >> >>> This fails to exit on Cygwin 2.2.0-1. It correctly exists on Cygwin 2.1.0-1. >> >> WJFFM both in mintty and native console. >> CYGWIN_NT-6.1 daemon2 2.2.0(0.289/5/3) 2015-08-03 12:51 x86_64 Cygwin > > > Does *not* work for me in an 'xterm' launched from the X toolbar icon. > I see the same error. > > I don't see this with other commands, though. 'ls -l | head -10' > works just fine. > > > Okay, now this is really weird.... I have a hotkey set up in > AutoHotKey (Alt-Shift-T) to launch a new xterm. It calls HSTART > (http://www.ntwind.com/software/hstart.html) with /NOCONSOLE /SHELL > which then runs a '.bat' file that runs: > > c:\cygwin64\bin\bash.exe -i -c "exec /usr/bin/xterm -ls -u8 -display > :0.0 >/dev/null 2>&1 &" > > Any 'xterms' I open with this *work just fine*. Any I open from the > X11 taskbar *do not*. From my system.XWinrc: > > menu apps { > xterm exec "xterm -ls -u8" > ... > } > > Usually, I use my hotkey to open windows, so I haven't noticed if/when > I get this IO error for similar commands. > > I opened multiple xterms via both methods and confirmed that my hotkey > version always works and the menubar version never does. > > CYGWIN_NT-6.1 sshhhh 2.2.0(0.289/5/3) 2015-08-03 12:51 x86_64 Cygwin > it seems a race issue, on xterm I have $ yes |head -n 20 y ... y yes: standard output: Broken pipe yes: write error -- 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