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:
parent
091c6db883
commit
e5c1c9b037
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user