From 9b7b605e5abeee8b93dacd2e7dc3e66fb7916362 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 3 Feb 2021 16:09:43 -0500 Subject: Warn twice about stopped jobs Not really sure why this previously set job_warning to 2 rather than 1. Anyway I often just press ^D again after the warning without really thinking, so do it twice. --- bin/dash/src/jobs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/dash/src/jobs.c b/bin/dash/src/jobs.c index d4c13c0f..5104a5e5 100644 --- a/bin/dash/src/jobs.c +++ b/bin/dash/src/jobs.c @@ -1205,12 +1205,12 @@ stoppedjobs(void) int retval; retval = 0; - if (job_warning) + if (job_warning > 1) goto out; jp = curjob; if (jp && jp->state == JOBSTOPPED) { out2str("You have stopped jobs.\n"); - job_warning = 2; + job_warning++; retval++; } -- cgit 1.4.1