Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2022 09:13:34 +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@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267826

            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=3D238135&action=
=3Dedit
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.

--=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>