Skip to content

Commit

Permalink
Also give subshells the terminal
Browse files Browse the repository at this point in the history
Fixes #1362.
  • Loading branch information
faho authored and Kurtis Rader committed Apr 1, 2017
1 parent 2105bae commit d7ef7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse_execution.cpp
Expand Up @@ -1270,7 +1270,7 @@ parse_execution_result_t parse_execution_context_t::run_1_job(const parse_node_t

job->set_flag(JOB_FOREGROUND, !tree.job_should_be_backgrounded(job_node));

job->set_flag(JOB_TERMINAL, job->get_flag(JOB_CONTROL) && !is_subshell && !is_event);
job->set_flag(JOB_TERMINAL, job->get_flag(JOB_CONTROL) && !is_event);

job->set_flag(JOB_SKIP_NOTIFICATION,
is_subshell || is_block || is_event || !shell_is_interactive());
Expand Down

0 comments on commit d7ef7eb

Please sign in to comment.