Date: Wed, 31 Jul 2002 08:00:14 -0700 (PDT) From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/41190: in sed, report the { linenum instead of EOF linenum on pending } Message-ID: <200207311500.g6VF0Equ077504@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/41190; it has been noted by GNATS. From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: Cyrille Lefevre <cyrille.lefevre@laposte.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207311500.g6VF0Equ077504>