From: Houder <houder@xs4all.nl>
To: cygwin@cygwin.com
Subject: Re: grep < fifo fails
Date: Wed, 03 Oct 2018 18:46:00 -0000 [thread overview]
Message-ID: <d8e9dbf61b6299cae6db6da3a25eabb8@smtp-cloud9.xs4all.net> (raw)
In-Reply-To: <d56a12c77ecc441ca7dc2e8e1862145c@prosa.dk>
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
next prev parent reply other threads:[~2018-10-03 18:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-03 15:37 Ole Tange
2018-10-03 16:50 ` Marco Atzeri
2018-10-03 18:46 ` Houder [this message]
2018-10-04 16:02 ` Houder
2018-10-05 15:32 ` Houder
2018-10-08 8:24 ` Houder
2018-10-08 15:03 ` Eric Blake
2018-10-10 11:22 ` Corinna Vinschen
2018-10-10 9:53 ` Houder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d8e9dbf61b6299cae6db6da3a25eabb8@smtp-cloud9.xs4all.net \
--to=houder@xs4all.nl \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).