From nobody Thu Nov 17 09:14:56 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NCZ4c6Sjzz4hcLG for ; Thu, 17 Nov 2022 09:14:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NCZ4c37MQz48jF for ; Thu, 17 Nov 2022 09:14:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668676496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uDB6p3cWLbWvwZSID5fAiEFzHyIaetxqZ65DgmYAISE=; b=pqN3r/bJmxsjQVqRBycq2reW3/lVQhcA+QCkxoLcM+JMjBNqnR6LB3VLFOGufYt4Swdl7w joSYhh0kPmh/SoaR1R4a+n0fHIuD7/Ac0uh/HiEckdCnTEWB3YBvlMW2Kqi/sohWyXSe8e iYgBPW/flsmM5hgaAjiZCj8AHjFNp5CQ+wlfzZ6lmN6DeA/6JfcbEbcaj8oqmz1Z2veWZF w2CfuwOIms7oOm5SuVKXn5dVDtJXXTM+qmd6eQaiPsnvgDjVyT2f1YTbVsTUhoAOUH5Dkr PqhvZnbkj9r/nGC6957HcNGir761/nOwKhwhknFCdjn1sBh02kOAHsmcZFZbLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668676496; a=rsa-sha256; cv=none; b=HhKji2Q3dFTDxDjDAlHThZfDNchLRYR+Cfapu4H0YgR6J4az6cEL5L2HsUTHhtY2v+CWTR H59GVMxWxQWrd91DWj/qH5DazzFgbChoe27/8FO+h5XT+6IDc0gm/ExqlEco3JgdvwAglh VBZpGsrTFMRuL5jAlT9Lrre7CYJm8T/18WJD48AJrMiQPQ9SDm8nmZQgn5CBT8ArKPFGWJ /elFegaICunJRHLnoZofMM209ROvRK4W7o/4aDEjHeq18veM5XCJc8yGK2w9zbY9VgSTcY b0Br41IjQrMflr6nvDgOUR2AcHqpKRGU05kwWLWkY0R3fol6KUV1pu5/mlKNrg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NCZ4c28ZSzcGm for ; Thu, 17 Nov 2022 09:14:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2AH9EuZS083814 for ; Thu, 17 Nov 2022 09:14:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AH9EugX083813 for bugs@FreeBSD.org; Thu, 17 Nov 2022 09:14:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Thu, 17 Nov 2022 09:14:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: tphilipp@potion-studios.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267826 --- Comment #1 from Tassilo Philipp --- 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.=