Date: Thu, 17 Nov 2022 09:14:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args Message-ID: <bug-267826-227-V2s9aslEQh@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-267826-227@https.bugs.freebsd.org/bugzilla/> References: <bug-267826-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267826 --- Comment #1 from Tassilo Philipp <tphilipp@potion-studios.com> --- for completenes, working output on 12.2: $ echo | awk -f x.awk 7&3 =3D 3 # should be 3 1|2 =3D 3 # should be 3 1^2 =3D 3 # should be 3 7&3&2 =3D 2 # should be 2 1|2|4 =3D 7 # should be 7 1^2^4 =3D 7 # should be 7 7&3&2&1 =3D 0 # should be 0 1|2|4|9 =3D 15 # should be 15 1^2^4^9 =3D 14 # should be 14 broken output on 12.3: $ echo | awk -f x.awk 7&3 =3D 3 # should be 3 1|2 =3D 3 # should be 3 1^2 =3D 3 # should be 3 awk: warning: function has too many arguments input record number 1, file source line number 7 7&3&2 =3D 3 # should be 2 awk: warning: function has too many arguments input record number 1, file source line number 8 1|2|4 =3D 3 # should be 7 awk: warning: function has too many arguments input record number 1, file source line number 9 1^2^4 =3D 3 # should be 7 awk: warning: function has too many arguments input record number 1, file source line number 11 7&3&2&1 =3D 3 # should be 0 awk: warning: function has too many arguments input record number 1, file source line number 12 1|2|4|9 =3D 3 # should be 15 awk: warning: function has too many arguments input record number 1, file source line number 13 1^2^4^9 =3D 3 # should be 14 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267826-227-V2s9aslEQh>