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

Diff for /src/usr.bin/sed/compile.c between version 1.47 and 1.48

version 1.47, 2017/12/13 16:07:54 version 1.48, 2018/07/09 09:43:54
Line 367 
Line 367 
                         if ((d = compile_ccl(&p, d)) == NULL)                          if ((d = compile_ccl(&p, d)) == NULL)
                                 error(COMPILE, "unbalanced brackets ([])");                                  error(COMPILE, "unbalanced brackets ([])");
                         continue;                          continue;
                 } else if (*p == '\\' && p[1] == '[') {  
                         *d++ = *p++;  
                 } else if (*p == '\\' && p[1] == c) {                  } else if (*p == '\\' && p[1] == c) {
                         p++;                          p++;
                   } else if (*p == '\\' && p[1] == '[') {
                           *d++ = *p++;
                 } else if (*p == '\\' && p[1] == 'n') {                  } else if (*p == '\\' && p[1] == 'n') {
                         *d++ = '\n';                          *d++ = '\n';
                         p += 2;                          p += 2;

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48