diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-15 18:05:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-15 18:05:57 +0000 |
commit | 70909f4ac7106c3eb6cf3831b0923fce4e7714f9 (patch) | |
tree | 9dd34531368d48672e81bca1a4899aed463c1cd6 /main.c | |
parent | e6b080f3a27c56f233170a65580fb5d2f5a9841c (diff) | |
download | mandoc-70909f4ac7106c3eb6cf3831b0923fce4e7714f9.tar.gz |
Let "man n open" do the same as "man -s n open" again, that is,
show the open(n) Tcl manual, as documented in man(1). Issue reported
by Svyatoslav Mishyn <juef at openmailbox dot org> (Crux Linux).
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -309,9 +309,10 @@ main(int argc, char *argv[]) argv = help_argv; argc = 1; } - } else if (argv[0] != NULL && - isdigit((unsigned char)argv[0][0]) && - (argv[0][1] == '\0' || !strcmp(argv[0], "3p"))) { + } else if (argv[0] != NULL && ( + (isdigit((unsigned char)argv[0][0]) && + (argv[0][1] == '\0' || !strcmp(argv[0], "3p"))) || + (argv[0][0] == 'n' && argv[0][1] == '\0'))) { search.sec = argv[0]; argv++; argc--; |