/[man-db]/man-db/src/man.c
ViewVC logotype

Diff of /man-db/src/man.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.98 by cjwatson, Fri Aug 1 00:33:40 2003 UTC revision 1.99 by cjwatson, Fri Aug 1 21:07:39 2003 UTC
# Line 992  int main (int argc, char *argv[]) Line 992  int main (int argc, char *argv[])
992          if (pager == NULL) {          if (pager == NULL) {
993                  pager = getenv ("PAGER");                  pager = getenv ("PAGER");
994                  if (pager == NULL)                  if (pager == NULL)
995                          pager = get_def ("pager", PAGER);                          pager = get_def_user ("pager", PAGER);
996          }          }
997          if (*pager == '\0')          if (*pager == '\0')
998                  pager = get_def ("cat", CAT);                  pager = get_def_user ("cat", CAT);
999    
1000          if (prompt_string == NULL)          if (prompt_string == NULL)
1001  #ifdef LESS_PROMPT  #ifdef LESS_PROMPT
# Line 1897  static char *make_display_command (const Line 1897  static char *make_display_command (const
1897    
1898          if (file) {          if (file) {
1899                  if (ascii)                  if (ascii)
1900                          command = strappend (NULL, get_def ("cat", CAT),                          command = strappend (NULL, get_def_user ("cat", CAT),
1901                                               " ", esc_file, " |",                                               " ", esc_file, " |",
1902                                               get_def ("tr", TR TR_SET1 TR_SET2),                                               get_def_user ("tr",
1903                                                               TR TR_SET1 TR_SET2),
1904                                               " |", pager, NULL);                                               " |", pager, NULL);
1905  #ifdef TROFF_IS_GROFF  #ifdef TROFF_IS_GROFF
1906                  else if (htmlout)                  else if (htmlout)
# Line 1911  static char *make_display_command (const Line 1912  static char *make_display_command (const
1912          } else {          } else {
1913                  if (ascii)                  if (ascii)
1914                          command = strappend (NULL,                          command = strappend (NULL,
1915                                               get_def ("tr", TR TR_SET1 TR_SET2),                                               get_def_user ("tr",
1916                                                               TR TR_SET1 TR_SET2),
1917                                               " |", pager, NULL);                                               " |", pager, NULL);
1918  #ifdef TROFF_IS_GROFF  #ifdef TROFF_IS_GROFF
1919                  else if (htmlout)                  else if (htmlout)
# Line 2612  static int display (const char *dir, con Line 2614  static int display (const char *dir, con
2614    
2615                          esc_cat_file = escape_shell (cat_file);                          esc_cat_file = escape_shell (cat_file);
2616                          format_cmd = strappend (NULL,                          format_cmd = strappend (NULL,
2617                                                  get_def ("decompressor",                                                  get_def_user ("decompressor",
2618                                                           DECOMPRESSOR),                                                                DECOMPRESSOR),
2619                                                  " ", esc_cat_file, NULL);                                                  " ", esc_cat_file, NULL);
2620                          free (esc_cat_file);                          free (esc_cat_file);
2621                          disp_cmd = make_display_command (NULL, title);                          disp_cmd = make_display_command (NULL, title);

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26