delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/05/14/03:45:15

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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; q=dns; s=default; b=Rap65
KAaHxorajWwLUjsFkYK3UHfpwUZFsP5Z1f9ffL96ygxYBfUT65JGCfkkcYeDN0iQ
wNupWlmntzPn1a+bRrhZMFgp5N7Oz1Gq6O2K3vLtt2+xDYQnU/HJ3R165gXFgO6m
+GuLAoabxoqBHDEY5meVRPVEANxsencmKGtWxM=
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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; s=default; bh=mxCeIGUHXoo
U8yma8zkiC9quQ+g=; b=KrMcllizaZLE2QRKnf45GbcTzVuiMDSEsORYd5oSA7I
5lobSHUobqYFmfW93nx7CEwNxnEIyoL4hVMtqj1nMBu0JbQEWAGUVyQ0Nk9lr7vg
S5M4YcXKq/Y8+oObKHXNiMoeiPjo3jTke8OwHsOT+uyl3Q5zuOQoB5dsC7YUu0xM
=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-in-02.arcor-online.net
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-07.arcor-online.net 3lnPz34k84z87Sv
From: Achim Gratz <Stromeko AT nexgo DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: [Bug] Named Pipes (FIFO) / Bash
References: <87ipxgirl7 DOT fsf AT Rainer DOT invalid>
Date: Thu, 14 May 2015 09:44:46 +0200
In-Reply-To: <87ipxgirl7.fsf@Rainer.invalid> (Achim Gratz's message of "Sat, 22 Jan 2011 21:57:56 +0100")
Message-ID: <87oalneh75.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0

Achim Gratz writes:
> I'm having problems with some bash scripts that were developed (not be
> me) and working OK in Cygwin 1.6.x versions, but not in 1.7.x (tested on
> 1.7.6, 1.7.7 and the latest snapshot).  After some gnashing of teeth and
> pulling of hair I've whittled it down to a problem with named pipe
> handling in bash.  Sifting through the archives of the mailing lists
> didn't provide much clues.  I realize from earlier discussions that
> named pipes aren't fully supported, but some examples of programs and
> scripts seem to indicate that they should at least work on a basic
> level.
>
> I've tried both the current and the just announced experimental version
> of bash and both Windows7/CoreDuo and WinXP/TurionX2 (I don't think the
> dual cores have something to do with the problem, but if necessary I
> should be able to at least boot the WinXP machine with only a single
> core enabled).
>
> $ mkfifo /tmp/pipe
> $ ( sleep 10; echo -n "blafasel "; date; sleep 10; cat < /tmp/pipe )&
> $ echo -n "dingdong "; date; exec 6> /tmp/pipe; echo -n "blumblum "; date
> $ echo -n "hurrdurr " >&6; date
>
> Running this on Linux outputs as expected:
>
> dingdong Sa 22. Jan 20:41:45 CET 2011
> blafasel Sa 22. Jan 20:41:55 CET 2011
> blumblum Sa 22. Jan 20:42:05 CET 2011
> hurrdurr Sa 22. Jan 20:42:05 CET 2011
>
> On Cygwin, I get this:
>
> dingdong Sa 22. Jan 20:41:45 CET 2011
> blumblum Sa 22. Jan 20:41:45 CET 2011
> blafasel Sa 22. Jan 20:41:55 CET 2011
> cat: -: Communication error on send

Blast from the past!  I've just tested this again with Cygwin 2.0 and it
finally works correctly.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019