version 1.33, 2016/03/16 15:36:26 |
version 1.34, 2016/08/28 07:25:47 |
|
|
|
|
init_prompt(); |
init_prompt(); |
|
|
s = lgetenv(less_is_more ? "MORE" : "LESS"); |
|
if (s != NULL) |
|
scan_option(estrdup(s)); |
|
|
|
if (less_is_more) { |
if (less_is_more) { |
/* this is specified by XPG */ |
/* this is specified by XPG */ |
quit_at_eof = OPT_ON; |
quit_at_eof = OPT_ON; |
|
|
/* repaint from top of screen */ |
/* repaint from top of screen */ |
top_scroll = OPT_OFF; |
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') |
#define isoptstring(s) (((s)[0] == '-' || (s)[0] == '+') && (s)[1] != '\0') |
while (argc > 0 && (isoptstring(*argv) || isoptpending())) { |
while (argc > 0 && (isoptstring(*argv) || isoptpending())) { |