From d7ef7eb484a0693c581200baf722a7fd19e754e1 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 29 Mar 2017 13:38:53 +0200 Subject: [PATCH] Also give subshells the terminal Fixes #1362. --- src/parse_execution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_execution.cpp b/src/parse_execution.cpp index c4d826e77..1a8e6da3f 100644 --- a/src/parse_execution.cpp +++ b/src/parse_execution.cpp @@ -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());