delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/10/03/14:46:44

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:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=cUQaWU
mJs6okoTgjycyWsvkFbiQSvh2SkmKPYPdu8wUDfFfcqkFrQKGrDEogZrrOl74znm
WjwnK71KKkT2KyejgwNpyz/mtMkqiXne8RzTOtyWEBKGlnSSmmk8Gig4dZEcjCAQ
LcHaAjzwN2C9X/b3a9syHvcFETqIZJmmSm9KM=
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:date:message-id:from:reply-to:to:subject
:references:in-reply-to:content-type; s=default; bh=3B9rmm+c07Sr
dPd+28QHZZeaNjI=; b=J/k+BidcmEXcaI/gmhwMmk4cmvHNoxSOeN2eKI9jTkDI
CFiMExEkWBQHXEH9SiFZeqdmxxTl9FSpn2tdlfmBRLBFwFyx7WM7PW/jsfIizTJK
GBxOsYYL15ZLA0X/eYynmJIfABC1VS1ePkI1r82bEFhryLOvfp3oiXpjuEh2URg=
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=AWL,BAYES_00,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:smtp, H*F:D*nl, packaged
X-HELO: lb1-smtp-cloud9.xs4all.net
Date: Wed, 03 Oct 2018 20:46:11 +0200
Message-ID: <d8e9dbf61b6299cae6db6da3a25eabb8@smtp-cloud9.xs4all.net>
From: Houder <houder AT xs4all DOT nl>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: grep < fifo fails
References: <d56a12c77ecc441ca7dc2e8e1862145c AT prosa DOT dk>
In-Reply-to: <d56a12c77ecc441ca7dc2e8e1862145c@prosa.dk>
User-Agent: mua.awk 0.99

On Wed, 3 Oct 2018 15:37:14, Ole Tange wrote:
> 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.

64-@@ bash --version
GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)64
..
64-@@ echo > fifo & grep . < fifo
[1] 1192
[1]+  Done                    echo > fifo
64-@@ grep --version
grep (GNU grep) 3.0
Packaged by Cygwin (3.0-2)
..
Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
64-@@ file fifo
fifo: very short file (no magic)
64-@@

@@ bash --version
GNU bash, version 4.4.12(3)-release (i686-pc-cygwin)
..
@@ echo > fifo & grep . < fifo
[1] 4852
[1]+  Done                    echo > fifo
@@ grep --version
grep (GNU grep) 3.0
Packaged by Cygwin (3.0-2)
..
Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
@@ file fifo
fifo: very short file (no magic)
@@

Your version of grep ?????

Regards,
Henri


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