From: utzoo!decvax!harpo!floyd!cmcl2!philabs!sdcsvax!sdcattb!sdcarl!rusty
Newsgroups: net.bugs.4bsd
Title: csh jobs/tostop bug
Article-I.D.: sdcarl.4253
Posted: Fri Jan 14 10:14:05 1983
Received: Sun Jan 16 04:50:10 1983

given the following command line

	cmd & stty tostop & wait ; fg

``cmd'' produces output and takes a minute
or so to produce it, therefore the stty
exits successfully before it. i would expect
that csh would run both of the 1st two commands
in the background and do the wait until ``cmd''
tries to do some output whereupon it would be
stopped and then the fg would be executed and
you'd get attached to ``cmd''. this is not
what happens. as an example try the above and
use the following shell script for ``cmd'':

	#! /bin/sh

	sleep 10

	echo "hello, world"

be sure to do an ``stty -tostop'' beforehand
in case you have tostop set.