version 1.35, 2016/09/17 15:06:41 |
version 1.36, 2018/03/17 14:03:36 |
|
|
|
|
s = lgetenv(less_is_more ? "MORE" : "LESS"); |
s = lgetenv(less_is_more ? "MORE" : "LESS"); |
if (s != NULL) |
if (s != NULL) |
scan_option(estrdup(s)); |
scan_option(estrdup(s), 1); |
|
|
#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())) { |
|
|
argc--; |
argc--; |
if (strcmp(s, "--") == 0) |
if (strcmp(s, "--") == 0) |
break; |
break; |
scan_option(s); |
scan_option(s, 0); |
} |
} |
#undef isoptstring |
#undef isoptstring |
|
|