Web lists-archives.com

Re: grep < fifo fails




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