Is typeahead loss a generic ksh problem?

Arthur David Olson ado at elsie.UUCP
Tue May 17 04:16:20 AEST 1988


We're using the 02/21/85b version of ksh on a VAX 11/750 running MORE/bsd 4.3.
At times ksh will flush typeahead, as shown by the transcript below:

	Script started on Mon May 16 14:11:13 1988
	$ function q {
	> 	(echo alpha; sleep 5; echo omega) | awk '{print ; exit}'
	> }
	$ q ; echo hello, world
	alpha
	hello, world
	$ q
	alpha
>>>>	echo hello, world
	$ 
	$ exit

	script done on Mon May 16 14:12:29 1988

I (quickly) typed in the ">>>>"d line above before receiving the ksh "$" prompt;
the input was discarded.

Is this a problem with other versions of ksh?  Is there a known fix?
-- 
	  Canada is to spaceflight as the U.S.S.R. is to baseball.
	ado at ncifcrf.gov			ADO is a trademark of Ampex.



More information about the Comp.unix.questions mailing list