From nobody Sat Feb 08 11:35:52 2025 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 4Yqpgb2txBz5msHn for ; Sat, 08 Feb 2025 11:35:55 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yqpgb1SJYz3Ntn for ; Sat, 08 Feb 2025 11:35:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739014555; 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; bh=uyrBYcw5D6DJtqvLp9ICacBOdLTQRD0vuDydMZfdLco=; b=lKkXGL5nVT5T4rs9zA+rU8qFbYdWZ0OWe8u+08T3+kizZ46I992J5S2pf/aKow6eIFZKht CX8uvYd0+r4Dyif/LfM6xhLj0Kt6oOofHjOP24l97o0Y1JsGPo83cZdlTNZxZO/fsAh3lX Oyx876yL02o+0d2lyAaKYWS6AgIi2oMx6Q+OqSP9HxMlQGCApMYHIW8eM4c1Gj2CFSDlVR pIaufadX6nKDphMKL6erh0wTykluhYVz0tmMrJlj1MvXzAFAuLuIWYYofteoQJLFWlkj9T ABy22npUPBWvA/AQAeUMSjGENNiMadvLjwVc/ySjrS/kmjlKCc/PSw8dj3iQYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739014555; 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; bh=uyrBYcw5D6DJtqvLp9ICacBOdLTQRD0vuDydMZfdLco=; b=FJq9JzyrZshR9jiidVfa6E8zwsYbvpGPFbc15WTMHOOi/ugZ4B8aInWzLPNqzsN5aesjFD ur4a16VMrTb6sIp+pJLPR7+XHIqUjRe4mafvtUE6BtU2URPr/Xe43jsq6zJHoRMNHApWLh UWEq12cQ+l0+T3KCbTHO9Pnmdhytr0Hx7qq18/+9Ncrpmg0yrJIltAjsomqbE+D1T9ZqHQ yxg7rYuHWEE72ifNM+zk1NjrluNU3oXj9UBEcb3PzmGFVmIM2wiiZtNLDBVwPgdzEP1PLJ aUlp95wTGYjcHrfoSSViXAJLqL+RvRMNa0OxosAvQkklwkXZVGkHM+5FhCRIpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739014555; a=rsa-sha256; cv=none; b=bGRf+YkFTav1TgQ2MKEEreEAgVBTLsDDEKZuP8OBJGAY7rzlZPj9nEUQf0sfu7sAogQXYz nZ5H1HzUwRFyaJ8d7LHrrdOv4GPkygbL+/T3NmzRLLUklGNfiwzy5yt0jZDryoWlFUmjVB aRRUd6+L6cFeP7x8ggNpgdUuAn3NH3ouuiNqA2RmULkTwZ0l2g/T78MKSVf/GwGlvokeLC M1k7woPSgCx11P1l6+ECLoD0D/vYhYZhHKwDVfgZUlF0FXHJt5Vv1U2DWAsG2N10UqcY7Q GSPrKweQC6AxIL2QHZf0/g8OJNI/vQu+05wZpudlMsGy/lsJ/qdwJLJCBwGwYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Yqpgb11Zcz17Qy for ; Sat, 08 Feb 2025 11:35:55 +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 518BZtxB028703 for ; Sat, 8 Feb 2025 11:35:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 518BZtCf028696 for bugs@FreeBSD.org; Sat, 8 Feb 2025 11:35:55 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 284654] awk spits useless warning when a variable is assigned with embedded newline Date: Sat, 08 Feb 2025 11:35:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ax61@disroot.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284654 Bug ID: 284654 Summary: awk spits useless warning when a variable is assigned with embedded newline Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ax61@disroot.org FreeBSD 14.3-RELEASE "awk(1)" v20240422 spits out useless warning when a variable is assigned a value with embedded new line. So is not the case with FreeBSD package of GNU awk "5.3.1, API 4.0" or Debian 12 "mawk" version "1.= 3.4 20200120". The thread: https://freeradical.zone/@ax6761/113959236391782454 Script below show the output of native- & GNU awk's. input=3D"9 7" for AWK in \ /usr/bin/awk \ /usr/local/bin/gawk do echo ' ---' ; echo "$AWK" --version echo | "$AWK" -v arg=3D"$input" '{ print arg }' done --- awk version 20240422 /usr/bin/awk: newline in string 9 7... at source line 1 --- GNU Awk 5.3.1, API 4.0 Copyright (C) 1989, 1991-2024 Free Software Foundation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. 9 7 --=20 You are receiving this mail because: You are the assignee for the bug.=