From owner-cvs-all Wed Jul 17 2:36: 1 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82EA037B400; Wed, 17 Jul 2002 02:35:57 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46F7543E65; Wed, 17 Jul 2002 02:35:57 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6H9ZvJU022390; Wed, 17 Jul 2002 02:35:57 -0700 (PDT) (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6H9Zvhl022389; Wed, 17 Jul 2002 02:35:57 -0700 (PDT) Message-Id: <200207170935.g6H9Zvhl022389@freefall.freebsd.org> From: "Tim J. Robbins" Date: Wed, 17 Jul 2002 02:35:57 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/sed compile.c extern.h main.c misc.c process.c src/usr.bin/sed/TEST hanoi.sed X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tjr 2002/07/17 02:35:57 PDT Modified files: (Branch: RELENG_4) usr.bin/sed compile.c extern.h main.c misc.c process.c usr.bin/sed/TEST hanoi.sed Log: MFC: Avoid checking whether each line is the last line of the file when we don't need to know. Instead, check when we are trying to match a "$" address. This does not change the way sed processes regular files, but makes it behave more sensibly when used interactively. + style changes to sync with HEAD. PR: 40101 Revision Changes Path 1.1.1.1.14.1 +4 -3 src/usr.bin/sed/TEST/hanoi.sed 1.13.2.7 +4 -5 src/usr.bin/sed/compile.c 1.3.6.4 +2 -2 src/usr.bin/sed/extern.h 1.9.2.6 +33 -30 src/usr.bin/sed/main.c 1.3.2.2 +5 -6 src/usr.bin/sed/misc.c 1.10.2.8 +8 -8 src/usr.bin/sed/process.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message