public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin piping misbehaviour
@ 2000-03-13  4:45 Paul Sokolovsky
  2000-03-13  8:01 ` Chris Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Sokolovsky @ 2000-03-13  4:45 UTC (permalink / raw)
  To: cygwin

Hello cygwin,

  While porting textutils with my tools, I found that running (under
sh) cat <file>|head with sufficiently large file makes cat complain
about broken pipe (I haven't yet implemented SIGPIPE generation). I
tried that on cygwin and got no error. So, I considered behaviour of
my version queer. But looking at source code of both cat and head,
reading susv2 more and more assured me that I'm doing fine. I finally
relieved when run that on linux and got "Broken pipe" report from
shell.

      Now question: why cygwin passes that silently? To my
understanding, that sh who doesn't report termination by SIGPIPE. I
have the same with both bash and ash. B20.1 on 95 and NT.

--
Paul Sokolovsky, IT Specialist
http://www.brainbench.com/transcript.jsp?pid=11135



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Cygwin piping misbehaviour
  2000-03-13  4:45 Cygwin piping misbehaviour Paul Sokolovsky
@ 2000-03-13  8:01 ` Chris Faylor
  2000-03-13 11:05   ` Re[2]: " Paul Sokolovsky
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Faylor @ 2000-03-13  8:01 UTC (permalink / raw)
  To: cygwin

On Mon, Mar 13, 2000 at 02:40:52PM +0200, Paul Sokolovsky wrote:
>  While porting textutils with my tools, I found that running (under
>sh) cat <file>|head with sufficiently large file makes cat complain
>about broken pipe (I haven't yet implemented SIGPIPE generation). I
>tried that on cygwin and got no error. So, I considered behaviour of
>my version queer. But looking at source code of both cat and head,
>reading susv2 more and more assured me that I'm doing fine. I finally
>relieved when run that on linux and got "Broken pipe" report from
>shell.
>
>      Now question: why cygwin passes that silently? To my
>understanding, that sh who doesn't report termination by SIGPIPE. I
>have the same with both bash and ash. B20.1 on 95 and NT.

You're a programmer, right?  And you have source code available...

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re[2]: Cygwin piping misbehaviour
  2000-03-13  8:01 ` Chris Faylor
@ 2000-03-13 11:05   ` Paul Sokolovsky
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Sokolovsky @ 2000-03-13 11:05 UTC (permalink / raw)
  To: Chris Faylor

Hello Chris,

Chris Faylor <cgf@cygnus.com> wrote:

[]

>>      Now question: why cygwin passes that silently? To my
>>understanding, that sh who doesn't report termination by SIGPIPE. I
>>have the same with both bash and ash. B20.1 on 95 and NT.

CF> You're a programmer, right?  And you have source code available...

    Nice answer. Yes, I can dig source, find cause, and even submit
patch. I however doubt it would be accepted, since it's possible that
that behaviour is by design (or by specification - after all, my
Linux installation is not very recent). That returns us to original
question. If it annoyed you, sorry.


CF> cgf



--
Paul Sokolovsky, IT Specialist
http://www.brainbench.com/transcript.jsp?pid=11135



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-03-13 11:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-13  4:45 Cygwin piping misbehaviour Paul Sokolovsky
2000-03-13  8:01 ` Chris Faylor
2000-03-13 11:05   ` Re[2]: " Paul Sokolovsky

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