From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47282 invoked by alias); 3 Oct 2018 18:46:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 47267 invoked by uid 89); 3 Oct 2018 18:46:16 -0000 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 Received: from lb1-smtp-cloud9.xs4all.net (HELO lb1-smtp-cloud9.xs4all.net) (194.109.24.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Oct 2018 18:46:13 +0000 Received: from tmp.9gl4I6EAcl ([83.162.234.136]) by smtp-cloud9.xs4all.net with ESMTPSA id 7m9xgu6XPS9Y37m9ygOljM; Wed, 03 Oct 2018 20:46:11 +0200 Date: Wed, 03 Oct 2018 18:46:00 -0000 Message-ID: From: Houder Reply-To: cygwin@cygwin.com To: cygwin@cygwin.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 X-SW-Source: 2018-10/txt/msg00030.txt.bz2 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 . 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 . @@ 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