https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283891
Bug ID: 283891
Summary: awk(1) prints a wrong line number in the error message
Product: Base System
Version: 14.2-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
The following command complains about the line 7 when line 29 has an offending
function:
> $ awk -f /usr/ports/Mk/Scripts/cargo-crates-git-common.awk -f
> /usr/ports/Mk/Scripts/cargo-crates-git-common.awk
> awk: you can't define function warn more than once at source line 7 source
> file /usr/ports/Mk/Scripts/cargo-crates-git-common.awk
> context is
> function >>> warn <<< (fmt, a, b, c, d, e, f, g, h, i, j, k, l, m,
> n, o, p, q, r, s, t, u, v, w, x, y, z) {
> awk: syntax error at source line 7 in function warn source file
> /usr/ports/Mk/Scripts/cargo-crates-git-common.awk
> awk: bailing out at source line 7 in function warn source file
> /usr/ports/Mk/Scripts/cargo-crates-git-common.awk
--
You are receiving this mail because:
You are the assignee for the bug.