Readd the terminal flag for jobs, as not all jobs under job control should be given the terminal.

darcs-hash:20060201122715-ac50b-7efc499e8905e9898c214816d0a3468e077c7005.gz
This commit is contained in:
axel
2006-02-01 22:27:15 +10:00
parent 7a1a5a6f01
commit e95effb043
5 changed files with 47 additions and 32 deletions

View File

@@ -2179,13 +2179,12 @@ static void eval_job( tokenizer *tok )
case TOK_STRING:
{
j = job_create();
j->command=0;
j->fg=1;
j->constructed=0;
j->terminal = j->job_control && (!is_subshell && !is_event);
j->skip_notification = is_subshell || is_block || is_event || (!is_interactive);
current_block->job = j;
if( is_interactive )
{
if( tcgetattr (0, &j->tmodes) )