From bd240d5233e926269bdfdbc5722495cf5000299f Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Wed, 24 Aug 1994 07:26:23 +0000 Subject: [PATCH] From: Tom Pavel Subject: man returns 1 In 1.1.5.1, man returns a status of 1 if the lookup succeeds and 0 if it fails. Here is a patch for what I believe is a simple oversight: Submitted by: jkh --- gnu/usr.bin/man/man/man.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c index 262e3337f214..c5b05e244a12 100644 --- a/gnu/usr.bin/man/man/man.c +++ b/gnu/usr.bin/man/man/man.c @@ -187,7 +187,8 @@ main (argc, argv) gripe_not_found (nextarg, section); } } - return status; + return (status==0); /* status==1 --> exit(0), + status==0 --> exit(1) */ } void