source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Let "man n open" do the same as "man -s n open" again, that is,
@ 2014-12-15 18:05 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-12-15 18:05 UTC (permalink / raw)
  To: source

Log Message:
-----------
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).

Modified Files:
--------------
    mdocml:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/main.c,v
retrieving revision 1.205
retrieving revision 1.206
diff -Lmain.c -Lmain.c -u -p -r1.205 -r1.206
--- main.c
+++ main.c
@@ -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--;
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-15 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 18:05 mdocml: Let "man n open" do the same as "man -s n open" again, that is, schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).