From 2cabcf4ad466d44a4fc45afa3892c933238e2ebe Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sat, 18 Jun 2016 08:00:40 -0700 Subject: bg had also had wrong exit code for some errors Stop printing usage information when error isn't a usage problem. Add simple test for bg and fg --- tests/jobs.err | 2 ++ tests/jobs.in | 2 ++ 2 files changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/jobs.err b/tests/jobs.err index e69de29b..13e56fdf 100644 --- a/tests/jobs.err +++ b/tests/jobs.err @@ -0,0 +1,2 @@ +bg: '3' is not a job +fg: No suitable job: 3 diff --git a/tests/jobs.in b/tests/jobs.in index c32b9b37..14ed5181 100644 --- a/tests/jobs.in +++ b/tests/jobs.in @@ -1,3 +1,5 @@ sleep 1 & sleep 1 & jobs -c +bg 3 +fg 3 \ No newline at end of file -- cgit v1.2.3