Use const auto for all jobs

This commit is contained in:
Mahmoud Al-Qudsi
2019-03-20 22:37:26 -05:00
parent d4d5c03a03
commit 36f3a6d7e0
9 changed files with 19 additions and 19 deletions

View File

@@ -785,7 +785,7 @@ parse_execution_result_t parse_execution_context_t::populate_plain_process(
static uint32_t last_exec_run_counter = -1;
if (process_type == process_type_t::exec && shell_is_interactive()) {
bool have_bg = false;
for (const auto bg : jobs()) {
for (const auto &bg : jobs()) {
// The assumption here is that if it is a foreground job,
// it's related to us.
// This stops us from asking if we're doing `exec` inside a function.