Summary: | [patch] sed(1) report the { linenum instead of EOF linenum on pending } | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Cyrille Lefevre <cyrille.lefevre> | ||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | Open --- | ||||||
Severity: | Affects Only Me | CC: | tjr | ||||
Priority: | Normal | Keywords: | patch | ||||
Version: | 4.6-STABLE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Cyrille Lefevre
2002-07-31 03:10:01 UTC
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> |