Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: How does a shell know if it's in the foreground or the background? Message-ID: <7454@auspex.auspex.com> Date: 26 Apr 91 18:28:26 GMT References: <1991Apr24.232959.6247@elroy.jpl.nasa.gov> Organization: Auspex Systems, Santa Clara Lines: 7 >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....