[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267826] awk(1) functions or(), and() and xor() broken when used with more than 2 args"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Nov 2022 09:13:34 UTC
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: bugs@FreeBSD.org
Reporter: tphilipp@potion-studios.com
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.