delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/10/03/11:37:35

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: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 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-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 AT prosa DOT dk>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: grep < fifo fails
Date: Wed, 3 Oct 2018 15:37:14 +0000
Message-ID: <d56a12c77ecc441ca7dc2e8e1862145c@prosa.dk>
MIME-Version: 1.0
X-SpamExperts-Domain: prosa.dk
X-SpamExperts-Username: outgoing
Authentication-Results: fab-it.dk; auth=pass (login) smtp.auth=outgoing AT prosa DOT dk
X-SpamExperts-Outgoing-Class: unsure
X-SpamExperts-Outgoing-Evidence: Combined (0.50)
X-Recommended-Action: accept
X-Report-Abuse-To: spam AT se01 DOT fab-it DOT dk
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


- Raw text -


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