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=kL1VRT +BW5i+hyUh28nxR7qv2vu8ASryiLzP1BaMLOj5OiKLDxymCmLfzgAU7SzAOe5Iya 2jQe6n7zBvRkvO7CnJtFKrB4nNJUHY+itBC9TGkR2NfDRQEhgf66J2dJMdxFgujC y6h9fJ0KE2q4YniG65YviwM4YwdAJiL9I/Bmw= 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=7VPKBgnRWjcO CyaDAMoSUDe7pGU=; b=VWFccuL5KTNciIjOp2EoCtBHiIv5F6HfBexwid3J/dcE y74hVoWklD//XB0gArO1yGclvTRPJrNODfJgflD37I+/zbY4tJwiomyicopb2Vdn T8B7YG2t8yMvYkNOyJa9It0ks+NKDUfwyy1A9yOS2rSzhRNLraMUQAAKGJPJliU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=houder, Houder X-HELO: lb1-smtp-cloud7.xs4all.net Date: Thu, 04 Oct 2018 18:02:03 +0200 Message-ID: From: Houder Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: grep < fifo fails References: In-Reply-to: Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 On Wed, 03 Oct 2018 20:46:11, Houder wrote: > 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. My apologies. Did not read you post as careful as I should have the first time. You are correct: grep is in error here. (utilities from e.g. coreutils do not show this error in the context above) 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