What can one actually determine with a ksh quest like that:
if [[ -t 0 ]];then
One could expect, that it tells one, wether the job runs
in the background, if the job is not bound to a terminal for
stdin. But -t 0, -t 1, -t 2 are always true, wether
foreground or background.