|
| 1 | +diff --git i/builtin/help.c w/builtin/help.c |
| 2 | +index c257079..9ae3815 100644 |
| 3 | +--- i/builtin/help.c |
| 4 | ++++ w/builtin/help.c |
| 5 | +@@ -313,6 +313,14 @@ static void exec_man_man(const char *path, const char *page) |
| 6 | + warning_errno(_("failed to exec '%s'"), path); |
| 7 | + } |
| 8 | + |
| 9 | ++static void exec_man_zotman(const char *path, const char *page) |
| 10 | ++{ |
| 11 | ++ if (!path) |
| 12 | ++ path = "zotman"; |
| 13 | ++ execlp(path, "zotman", page, (char *)NULL); |
| 14 | ++ warning_errno(_("failed to exec '%s'"), path); |
| 15 | ++} |
| 16 | ++ |
| 17 | + static void exec_man_cmd(const char *cmd, const char *page) |
| 18 | + { |
| 19 | + struct strbuf shell_cmd = STRBUF_INIT; |
| 20 | +@@ -335,6 +343,7 @@ static int supported_man_viewer(const char *name, size_t len) |
| 21 | + { |
| 22 | + return (!strncasecmp("man", name, len) || |
| 23 | + !strncasecmp("woman", name, len) || |
| 24 | ++ !strncasecmp("zotman", name, len) || |
| 25 | + !strncasecmp("konqueror", name, len)); |
| 26 | + } |
| 27 | + |
| 28 | +@@ -478,6 +487,13 @@ static void exec_viewer(const char *name, const char *page) |
| 29 | + { |
| 30 | + const char *info = get_man_viewer_info(name); |
| 31 | + |
| 32 | ++#ifdef __MVS__ |
| 33 | ++ if (!strcasecmp(name, "man")) |
| 34 | ++ exec_man_zotman(info, page); |
| 35 | ++ if (!strcasecmp(name, "zotman")) |
| 36 | ++ exec_man_zotman(info, page); |
| 37 | ++ else |
| 38 | ++#endif |
| 39 | + if (!strcasecmp(name, "man")) |
| 40 | + exec_man_man(info, page); |
| 41 | + else if (!strcasecmp(name, "woman")) |
0 commit comments