From 9502ea8de33a14e1ab43eae33ec7f8d072709ce3 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 4 Mar 2018 15:33:36 -0600 Subject: [PATCH] Add tests for `jobs -q` --- tests/jobs.in | 2 ++ tests/jobs.out | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/jobs.in b/tests/jobs.in index 8a758aeb6..9b2ba6c22 100644 --- a/tests/jobs.in +++ b/tests/jobs.in @@ -1,6 +1,8 @@ +jobs -q; echo $status sleep 5 & sleep 5 & jobs -c +jobs -q; echo $status bg -23 1 ^/dev/null or echo bg: invalid option -23 >&2 fg 3 diff --git a/tests/jobs.out b/tests/jobs.out index 929263874..c614464d0 100644 --- a/tests/jobs.out +++ b/tests/jobs.out @@ -1,6 +1,8 @@ +1 Command sleep sleep +0 Command sleep sleep