From owner-freebsd-bugs Wed Jul 31 8: 0:20 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 109D537B400 for ; Wed, 31 Jul 2002 08:00:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C083F43E31 for ; Wed, 31 Jul 2002 08:00:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6VF0EJU077505 for ; Wed, 31 Jul 2002 08:00:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6VF0Equ077504; Wed, 31 Jul 2002 08:00:14 -0700 (PDT) Date: Wed, 31 Jul 2002 08:00:14 -0700 (PDT) Message-Id: <200207311500.g6VF0Equ077504@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Simon 'corecode' Schubert" Subject: Re: bin/41190: in sed, report the { linenum instead of EOF linenum on pending } Reply-To: "Simon 'corecode' Schubert" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/41190; it has been noted by GNATS. From: "Simon 'corecode' Schubert" To: Cyrille Lefevre Cc: FreeBSD-gnats-submit@FreeBSD.ORG, tjr@FreeBSD.ORG Subject: Re: bin/41190: in sed, report the { linenum instead of EOF linenum on pending } Date: Wed, 31 Jul 2002 16:52:50 +0200 --=.njZdDoSOH3BiKf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 31 Jul 2002 04:00:13 +0200 (CEST) Cyrille Lefevre wrote: > >Description: > actually, sed reports the EOF linenum on pending }. this patch > makes sed to report the { linenum instead. i think that's counter-intuitive as all programs i know of report the line containing the error (pending }) and don't guess about where it could have originated: % echo 'foo() {' > foo.c && cc foo.c foo.c: In function `foo': foo.c:2: syntax error at end of input cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.njZdDoSOH3BiKf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9R/nGr5S+dk6z85oRArPKAKCDPeJXGOKSh65LSjgwJb9xTxVpSQCgwA3y PyDf7NEht7KwyEhTmRWLtCE= =nOYh -----END PGP SIGNATURE----- --=.njZdDoSOH3BiKf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message