Date: Sat, 21 Apr 2007 01:21:36 +0000 (UTC) From: Yar Tikhiy <yar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/sed extern.h main.c process.c sed.1 src/tools/regression/usr.bin/sed regress.sh Message-ID: <200704210121.l3L1LaNU089475@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704210121.l3L1LaNU089475>
