=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/main.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/less/main.c 2014/04/25 18:07:41 1.14 +++ src/usr.bin/less/main.c 2014/05/10 16:45:23 1.15 @@ -184,7 +184,7 @@ ifile = NULL_IFILE; #if !SMALL if (dohelp) - ifile = get_ifile(HELPFILE, ifile); + ifile = get_ifile(helpfile(), ifile); #endif /* !SMALL */ while (argc-- > 0) { @@ -419,4 +419,10 @@ #endif close_getchr(); exit(status); +} + + public char * +helpfile(void) +{ + return (less_is_more ? HELPDIR "/more.help" : HELPDIR "/less.help"); }