cvs commit: src/usr.bin/sed process.c

Tony Finch fanf at FreeBSD.org
Wed Jun 4 08:31:57 PDT 2003


fanf        2003/06/04 08:31:55 PDT

  FreeBSD src repository

  Modified files:
    usr.bin/sed          process.c 
  Log:
  Fix substitution when the regex matches the zero-length string.
  There are two bugs: in the s///g case, the substitution didn't occur
  at the end of the line; in the s///N case, the code didn't count
  forwards along the line properly. See the sg, s3, s4, and s5 tests
  in src/tools/regression/usr.bin/sed/.
  
  Reviewed by:    tjr
  
  Revision  Changes    Path
  1.30      +6 -5      src/usr.bin/sed/process.c


More information about the cvs-src mailing list