From nobody Thu Nov 17 16:57:51 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 4NCmLm1kfNz4hlMw for ; Thu, 17 Nov 2022 16:57:52 +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 4NCmLl5S5hz3tcW for ; Thu, 17 Nov 2022 16:57:51 +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=1668704271; 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=xDujGTdw3SxR39P5k9NgJCn1C+cadQCzSx416UmljQ0=; b=fIhVQnH1r5laU8W30dSe0qMqAUSe6DNkNzwVVu0Lo1XiUnjR/vxQ5sNC6x9Fw1cH4gxRj7 91nBza9OaG50p3886MTHciX631bLR0lUBWcaWDZCW6mpTj2+0NPYdAb6rRGr4JzL7vqDYO /kP7FAXSaZHdhDOA69DaE1rJ6H9mBjTjj4YseI48LEREyws3PcIPjAsHrMMdLiEUdLnw5E DZUqFaoZ8+bta4iaM9U3s1JJNUlvlYYhfoRHTzYsEk8rmlLdltYt5U+Jg1i6Pj5FR+hrr4 YkfcLSZnHzGIa6i8Ep0aCAd9ZixO7b3jP6NHPJQbbOTJoEbMYrw9XzsE8EF4Cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668704271; a=rsa-sha256; cv=none; b=dNUXHnPmtJIsx1T38VHDlPlxDdLlRjP3YAQ3sr2jxz5a0t3CjzGcG3LyD6FTI+TWFOiUaI a/2tQ7e9obHTm9V5RbA91qBHy1y8OYOWS5BLoLhHRw0Ij2sgJYMhIJ2Cb86FWQR6pLMYTH Ev5Rcd7d1ZWn/nPkzAC1d+LyWZshbOmpy1qwZFU/VrkUNcWKwMjqMIXzEPSZsbqTnIng5C kSos1vopFZcYNELvGl1wth1qZY1bK/QQpWIUgozsMTeBlrmqNOeESXTeDXHJ2dF3sE0RNb 9A+Kv9aNxMTnHMowLgXh4/X82lEVMs9Fr7eX7C7C3wrrFfH8r9E4sumLT3cEoQ== 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 4NCmLl4Gwrzpb5 for ; Thu, 17 Nov 2022 16:57:51 +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 2AHGvpKx060994 for ; Thu, 17 Nov 2022 16:57:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AHGvpfg060993 for bugs@FreeBSD.org; Thu, 17 Nov 2022 16:57:51 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 16:57:51 +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 Some 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 #3 from Tassilo Philipp --- Some more info: - according to src/contrib/one-true-awk/ChangeLog, the bitwise functions are from OpenBSD's awk, which never allowed more than 2 args - src/contrib/one-true-awk/awk.1 also doesn't mention more than 2 args - however, src/usr.bin/awk/awk.1 does mention it and reflects the old behav= iour - I'm unable to find any mention of the change that happened in any ChangeL= og - I grep'ed through the system's .awk files to see if more than two args ar= e in use anywhere, which isn't the case, so I changed the PR's Importance to "affects some people" So, I think a valid fix could also be to stay more in line with the OpenBSD version, and simply fix the manpage at src/usr.bin/awk/awk.1 hth --=20 You are receiving this mail because: You are the assignee for the bug.=