From owner-cvs-all@FreeBSD.ORG Sat Apr 21 01:21:37 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F3B016A401; Sat, 21 Apr 2007 01:21:37 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7AE13C44C; Sat, 21 Apr 2007 01:21:37 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3L1Lb8T089476; Sat, 21 Apr 2007 01:21:37 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3L1LaNU089475; Sat, 21 Apr 2007 01:21:36 GMT (envelope-from yar) Message-Id: <200704210121.l3L1LaNU089475@repoman.freebsd.org> From: Yar Tikhiy Date: Sat, 21 Apr 2007 01:21:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/sed extern.h main.c process.c sed.1 src/tools/regression/usr.bin/sed regress.sh X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Apr 2007 01:21:37 -0000 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