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

Diff for /src/usr.bin/awk/run.c between version 1.57 and 1.58

version 1.57, 2020/06/10 21:05:50 version 1.58, 2020/06/13 01:19:55
Line 2122 
Line 2122 
 {                                               /* sptr[0] == '\\' */  {                                               /* sptr[0] == '\\' */
         char *pb = *pb_ptr;          char *pb = *pb_ptr;
         const char *sptr = *sptr_ptr;          const char *sptr = *sptr_ptr;
         static bool first = true;  
         static bool do_posix = false;  
   
         if (first) {  
                 first = false;  
                 do_posix = (getenv("POSIXLY_CORRECT") != NULL);  
         }  
   
         if (sptr[1] == '\\') {          if (sptr[1] == '\\') {
                 if (sptr[2] == '\\' && sptr[3] == '&') { /* \\\& -> \& */                  if (sptr[2] == '\\' && sptr[3] == '&') { /* \\\& -> \& */

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58