ITADN

awk prints a wrong line number in the error message

#251Closedyurivict 创建于 2025-01-10
Y
yurivictcommented
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 Downstream bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283891
关闭于 2025-01-16 5 条评论