https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267826
Bug ID: 267826
Summary: awk(1) functions or(), and() and xor() broken when
used with more than 2 args
Product: Base System
Version: 12.3-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 238135
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238135&action=edit
repro case
The functions or(), and() and xor() are defined in the manpage to be able to
take multiple parameters: "There must be at least two values."
Specifying more than 2 is broken after an upgrade to 12.3 (works on 12.2):
1) an incorrect warning is printed "awk: warning: function has too many
arguments"
2) results are wrong, 3rd and subsequent arguments are simply ignored.
Attached is a repro file.
--
You are receiving this mail because:
You are the assignee for the bug.