From 58f4182880c21c1c203595bc19cdd465b629cd5a Mon Sep 17 00:00:00 2001 From: Arjun AK Date: Sun, 8 Jun 2014 11:25:37 +0530 Subject: [PATCH] Fixes issue:1484 Make jobs builtin return 1 if there are no jobs running in the background --- builtin_jobs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin_jobs.cpp b/builtin_jobs.cpp index c6ca77132..bd07c9e9a 100644 --- a/builtin_jobs.cpp +++ b/builtin_jobs.cpp @@ -343,6 +343,7 @@ static int builtin_jobs(parser_t &parser, wchar_t **argv) append_format(stdout_buffer, _(L"%ls: There are no jobs\n"), argv[0]); + return 1; } return 0;