cvs commit: src/usr.bin/sed extern.h main.c process.c sed.1 src/tools/regression/usr.bin/sed regress.sh

Yar Tikhiy yar at FreeBSD.org
Sat Apr 21 01:21:37 UTC 2007


yar         2007-04-21 01:21:36 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/sed          extern.h main.c process.c sed.1 
    tools/regression/usr.bin/sed regress.sh 
  Log:
  Change the semantics of -i (in-place editing) so that it treats
  each file independently from other files.  The new semantics are
  desired in the most of practical cases, e.g.: delete lines 5-9
  from each file.
  
  Keep the previous semantics of -i under a new option, -I, which
  uses a single continuous address space covering all files to edit
  in-place -- they are too cool to just drop them.
  
  Add regression tests for -i and -I.
  
  Approved by:    dds
  Compared with:  GNU sed
  Discussed on:   -hackers
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.15      +35 -1     src/tools/regression/usr.bin/sed/regress.sh
  1.14      +1 -0      src/usr.bin/sed/extern.h
  1.38      +16 -4     src/usr.bin/sed/main.c
  1.45      +13 -0     src/usr.bin/sed/process.c
  1.44      +53 -7     src/usr.bin/sed/sed.1


More information about the cvs-src mailing list