How does a shell know if it's in the foreground or the background?
Guy Harris
guy at auspex.auspex.com
Sat Apr 27 04:28:26 AEST 1991
>In shells that support job control (like csh), jobs are put into different
>process group than the parent shell to facilitate job control.
Note also that, in shells that support job control, "foreground" and
"background" are temporary conditions, not ways of life; a job could be
in the foreground one minute, and in the background a bit later, and
then back in the foreground again a bit later....
More information about the Comp.unix.questions
mailing list