[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/main.c between version 1.35 and 1.36

version 1.35, 2016/09/17 15:06:41 version 1.36, 2018/03/17 14:03:36
Line 143 
Line 143 
   
         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())) {
Line 151 
Line 151 
                 argc--;                  argc--;
                 if (strcmp(s, "--") == 0)                  if (strcmp(s, "--") == 0)
                         break;                          break;
                 scan_option(s);                  scan_option(s, 0);
         }          }
 #undef isoptstring  #undef isoptstring
   

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36