more(1) options, so it is possible to change them using MORE. From Ross
L Richardson. ok deraadt millert
init_prompt();
- s = lgetenv(less_is_more ? "MORE" : "LESS");
- if (s != NULL)
- scan_option(estrdup(s));
-
if (less_is_more) {
/* this is specified by XPG */
quit_at_eof = OPT_ON;
top_scroll = OPT_OFF;
}
+ s = lgetenv(less_is_more ? "MORE" : "LESS");
+ if (s != NULL)
+ scan_option(estrdup(s));
+
#define isoptstring(s) (((s)[0] == '-' || (s)[0] == '+') && (s)[1] != '\0')
while (argc > 0 && (isoptstring(*argv) || isoptpending())) {
s = *argv++;