actually, sed reports the EOF linenum on pending }. this patch makes sed to report the { linenum instead. How-To-Repeat: fetch http://queen.rett.polimi.it/~paolob/seders/scripts/sokoban.sed sed -f sokoban.sed sed: 2266: /root/sokoban.sed: unexpected EOF (pending }'s) patched version says : sed: 2063: /root/sokoban.sed: unexpected EOF (pending }'s) which is more accurate, IMHO.
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
ping more than 10 years after... !
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>