summaryrefslogtreecommitdiffstats
path: root/usr.bin/less/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/main.c')
-rw-r--r--usr.bin/less/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/less/main.c b/usr.bin/less/main.c
index 6a06cd0679c..5fc7f131803 100644
--- a/usr.bin/less/main.c
+++ b/usr.bin/less/main.c
@@ -143,7 +143,7 @@ main(int argc, char *argv[])
s = lgetenv(less_is_more ? "MORE" : "LESS");
if (s != NULL)
- scan_option(estrdup(s));
+ scan_option(estrdup(s), 1);
#define isoptstring(s) (((s)[0] == '-' || (s)[0] == '+') && (s)[1] != '\0')
while (argc > 0 && (isoptstring(*argv) || isoptpending())) {
@@ -151,7 +151,7 @@ main(int argc, char *argv[])
argc--;
if (strcmp(s, "--") == 0)
break;
- scan_option(s);
+ scan_option(s, 0);
}
#undef isoptstring