diff options
author | jkh <jkh@FreeBSD.org> | 1994-08-24 07:26:23 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-08-24 07:26:23 +0000 |
commit | 9c110258c6ba26308af923279d94241813f9df62 (patch) | |
tree | fbf55103524cfe377057d277ccf10b505b2bef94 | |
parent | ee3a8a1d810b31c1378022bc05b7126d464c3eac (diff) | |
download | FreeBSD-src-9c110258c6ba26308af923279d94241813f9df62.zip FreeBSD-src-9c110258c6ba26308af923279d94241813f9df62.tar.gz |
From: Tom Pavel <PAVEL@SLAC.Stanford.EDU>
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
-rw-r--r-- | gnu/usr.bin/man/man/man.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c index 262e333..c5b05e2 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 |