Also give subshells the terminal

Fixes #1362.
This commit is contained in:
Fabian Homborg 2017-03-29 13:38:53 +02:00 committed by Kurtis Rader
parent 2105bae1fc
commit d7ef7eb484

View File

@ -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());