From d61aba00f061fe9c3829b1d50581dc99cbbc6e27 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 13 Jul 2003 09:27:34 +0000 Subject: [PATCH] add another test --- tests/misc/nohup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/misc/nohup b/tests/misc/nohup index bcc610f..36a9655 100755 --- a/tests/misc/nohup +++ b/tests/misc/nohup @@ -100,4 +100,8 @@ EOF # cmp exp err || fail=1 # test $fail = 1 && diff exp err 2> /dev/null +# Make sure it fails with exit status of 127 when given too few arguments. +nohup >/dev/null 2>&1 +test $? = 127 || fail=1 + (exit $fail); exit $fail -- 2.7.4