[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-bugs
Subject: Re: bin/41190: in sed, report the { linenum instead of EOF linenum on pending }
From: "Simon 'corecode' Schubert" <corecode () corecode ! ath ! cx>
Date: 2002-07-31 15:00:14
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic