Date: Mon, 06 Jan 2025 20:37:09 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283891] awk(1) prints a wrong line number in the error message Message-ID: <bug-283891-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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: bugs@FreeBSD.org Reporter: yuri@freebsd.org 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283891-227>
