How does cat | vi work ?

Srivatsan Parthasarathy vatsanp at unix386.Convergent.COM
Tue Oct 16 05:03:17 AEST 1990


	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 at unix386.convergent.com



More information about the Comp.unix.questions mailing list