[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.33 and 1.34

version 1.33, 2016/03/16 15:36:26 version 1.34, 2016/08/28 07:25:47
Line 118 
Line 118 
   
         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;
Line 144 
Line 140 
                 /* 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())) {

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34