From 1ce9721590b4d8dddf57be730ba82dccdd3df925 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 20 Jan 2019 13:52:03 -0800 Subject: [PATCH] exec to only warn on background jobs in interactive sessions Extension of fix for #5449 in b007248 --- 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 09b7f7d9d..68a63c7c1 100644 --- a/src/parse_execution.cpp +++ b/src/parse_execution.cpp @@ -768,7 +768,7 @@ parse_execution_result_t parse_execution_context_t::populate_plain_process( // Protect against exec with background processes running static uint32_t last_exec_run_counter = -1; - if (process_type == INTERNAL_EXEC) { + if (process_type == INTERNAL_EXEC && shell_is_interactive()) { job_iterator_t jobs; bool have_bg = false; const job_t *bg = nullptr;