Path: utzoo!attcan!uunet!munnari.oz.au!uokmax!apple!vsi1!ubvax!pyramid!ctnews!unix386!vatsanp From: vatsanp@unix386.Convergent.COM (Srivatsan Parthasarathy) Newsgroups: comp.unix.questions Subject: How does cat | vi work ? Message-ID: <1337@unix386.Convergent.COM> Date: 15 Oct 90 19:03:17 GMT Distribution: comp Organization: Unisys/Convergent, San Jose, CA Lines: 14 How does cat | vi work ? Particularly ^D. Cat should interpret the ^D as EOF and terminate but when I tried it out vi scrolled the screen. Consensus in my group seems to be that vi puts /dev/tty in raw mode. So cat cannot see ^D anymore as EOF. vi terminates when the user types :q! or something to that effect and cat exits because its output pipe gets broken. Anything different about cat | sh ? -- vatsan vatsanp@unix386.convergent.com