Reverts exit status for man -k' and man -f'.

Man(1) now return 0 if apropos/whatis return 0, otherwise 1.
This commit is contained in:
wosch 1996-09-27 17:34:57 +00:00
parent 091c6db883
commit e5c1c9b037

View File

@ -177,10 +177,14 @@ main (argc, argv)
continue;
}
if (apropos)
if (apropos) {
do_apropos (nextarg);
else if (whatis)
status = (status ? 0 : 1); /* reverts status, see below */
}
else if (whatis) {
do_whatis (nextarg);
status = (status ? 0 : 1); /* reverts status, see below */
}
else
{
status = man (nextarg);