X-Recipient: archive-cygwin@delorie.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:date:message-id:content-type
	:content-transfer-encoding:mime-version; q=dns; s=default; b=meW
	Oe/pqMezUPONkDCPn39co0b3MrxU6Ccaqe34DVxSIsuoUMWJnabIpFztyWPVf7v0
	47UU4EILux1FRZfM+f2Oi9d4oNzKyXQ5V+KYpYq6INn4iXekMl2kito2XFxn+sUv
	7g1Ui0e0MjadRDThrz5cN0y1GASbBYvu2mR5jfn4=
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:date:message-id:content-type
	:content-transfer-encoding:mime-version; s=default; bh=qBdbXKv6U
	wHIV6nnUESwN1dojXY=; b=ICCzsdGO6QoaBkbs3gw3g2gk9jaoR5h4XBbtPNl0w
	IvM05vaCACHo68njoZNHLblgPryR3NyuO42Da6GR2B7HipuYauo6jhlVCnrvN0Ap
	uPlfjkRAiQ0hcBNkZlUB9woXl2qjjJJX5q+OzIg8x7QIn8srFzBqeozlO3gdP19r
	us=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=
X-HELO: se02.fab-it.dk
From: Ole Tange <ota@prosa.dk>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: grep < fifo fails
Date: Wed, 3 Oct 2018 15:37:14 +0000
Message-ID: <d56a12c77ecc441ca7dc2e8e1862145c@prosa.dk>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-SpamExperts-Domain: prosa.dk
X-SpamExperts-Username: outgoing
Authentication-Results: fab-it.dk; auth=pass (login) smtp.auth=outgoing@prosa.dk
X-SpamExperts-Outgoing-Class: unsure
X-SpamExperts-Outgoing-Evidence: Combined (0.50)
X-Recommended-Action: accept
X-Report-Abuse-To: spam@se01.fab-it.dk
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w93FbXc6008373

This works:

$ mkfifo fifo
$ echo > fifo & grep .  fifo
[1] 10232
[1]+  Done                    echo > fifo

But this fails:

$ echo > fifo & grep . < fifo
[1] 11756
grep: (standard input): Invalid argument
[1]+  Done                    echo > fifo

I see the same behavior on MINGW, but I do not see the same behavior on GNU/Linux.


Regards,

Ole Tange


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


