[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: weird pipe behaviour!

Hamish Moffatt writes:

> mkfifo wow
> cat < wow &
> cat < wow &
> echo hi there > wow

odd. in rc, this works, but i only see 'hi there' once.


No, i guess that's the Right Thing(TM). Or is it? Nah, i'm pretty sure
it is. One process has to do the read first, which is going to set the
EOF flag on the file descriptor. In any event, i'm not sure what's
wrong with *your* shell (rc wins again! neener neener! :-))... sorry.

Written with 100% free software. Please support the following websites:
www.noamazon.com www.eviltoy.com www.debian.org www.gnu.org lpf.ai.mit.edu

Reply to: