public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Pipe behaviour broken with Cygwin 2.2.0-1
@ 2015-08-05  0:45 Mark O'Keefe
  2015-08-05  5:37 ` Marco Atzeri
  2015-08-05 16:50 ` Andrey Repin
  0 siblings, 2 replies; 5+ messages in thread
From: Mark O'Keefe @ 2015-08-05  0:45 UTC (permalink / raw)
  To: cygwin

Hi,

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.

Cheers,
Mark.
--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipe behaviour broken with Cygwin 2.2.0-1
  2015-08-05  0:45 Pipe behaviour broken with Cygwin 2.2.0-1 Mark O'Keefe
@ 2015-08-05  5:37 ` Marco Atzeri
  2015-08-05 16:50 ` Andrey Repin
  1 sibling, 0 replies; 5+ messages in thread
From: Marco Atzeri @ 2015-08-05  5:37 UTC (permalink / raw)
  To: cygwin

On 05/08/2015 02:45, Mark O'Keefe wrote:
> Hi,
>
> 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.
>
> Cheers,
> Mark.
> --

works fine for me on 32bit and 64 bit.
Something more about your system ?

Regards
Marco





--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipe behaviour broken with Cygwin 2.2.0-1
  2015-08-05  0:45 Pipe behaviour broken with Cygwin 2.2.0-1 Mark O'Keefe
  2015-08-05  5:37 ` Marco Atzeri
@ 2015-08-05 16:50 ` Andrey Repin
  2015-08-05 21:09   ` Nem W Schlecht
  1 sibling, 1 reply; 5+ messages in thread
From: Andrey Repin @ 2015-08-05 16:50 UTC (permalink / raw)
  To: Mark O'Keefe, cygwin

Greetings, Mark O'Keefe!

> 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


-- 
With best regards,
Andrey Repin
Wednesday, August 5, 2015 19:48:33

Sorry for my terrible english...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipe behaviour broken with Cygwin 2.2.0-1
  2015-08-05 16:50 ` Andrey Repin
@ 2015-08-05 21:09   ` Nem W Schlecht
  2015-08-05 21:35     ` Marco Atzeri
  0 siblings, 1 reply; 5+ messages in thread
From: Nem W Schlecht @ 2015-08-05 21:09 UTC (permalink / raw)
  To: cygwin; +Cc: Mark O'Keefe

On Wed, Aug 5, 2015 at 11:49 AM, Andrey Repin <anrdaemon@yandex.ru> 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



-- 
Nem W Schlecht
 "Perl did the magic.  I just waved the wand."

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pipe behaviour broken with Cygwin 2.2.0-1
  2015-08-05 21:09   ` Nem W Schlecht
@ 2015-08-05 21:35     ` Marco Atzeri
  0 siblings, 0 replies; 5+ messages in thread
From: Marco Atzeri @ 2015-08-05 21:35 UTC (permalink / raw)
  To: cygwin

On 05/08/2015 23:09, Nem W Schlecht wrote:
> On Wed, Aug 5, 2015 at 11:49 AM, Andrey Repin <anrdaemon@yandex.ru> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-05 21:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-05  0:45 Pipe behaviour broken with Cygwin 2.2.0-1 Mark O'Keefe
2015-08-05  5:37 ` Marco Atzeri
2015-08-05 16:50 ` Andrey Repin
2015-08-05 21:09   ` Nem W Schlecht
2015-08-05 21:35     ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).