From nobody Fri Mar 28 13:47:25 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 4ZPMK96swTz5rsh4 for ; Fri, 28 Mar 2025 13:47:25 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZPMK941j2z3Xgw for ; Fri, 28 Mar 2025 13:47:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743169645; 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=2WgZD5cx/M6RjA4/RsQk4HTGwdw5oCiKpu3FU2+Y5/U=; b=KnrbmyLHRzdHbzOE6zG/iI9FCyQf/9qeEcT2KcKJjjtl03yKYDTn3qmy2VLXmdrwnjTAgP JM5EH5zMFcGgjD3dCKP4zqDz7nDxqiZHMOjL8f7LxFjEbDIGLpz5WbOlSaqdD1yLsJiZEF 3JxNBn+z2FUVsCkfOr+eyaTophOmLPtujvjn+F3prmHbe9dH/Q+lVzTw25IH265fQa92MI /Ho3HfYwMp1/Ejw9DByfO968XfKx9Khcufsthuwhunw3DBYNx4ei3fBamm45P/2m9y2AML qxGcNIxJ76P11bINq5PWyZ1WBLuSMIoBTRxShNGDO6Ws6XjPP4NOYuek+GKhBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743169645; a=rsa-sha256; cv=none; b=H1GYD820yw3kMJ47zqlTGYrvJmBdc4I2qT1JIzk2p/K0jqgM3DjrdGRjNIBuiE8XiWutxd 7pKKF0+InG/umzHsQ5ko+okeMZ21NY+wKK3AVo++s1u2nb3rCkioV1GXfhCJBBlEhoG3e/ qHB3Jq/YwZv1skj9AUNKzdEZ6KjeoA2I18EXez4JVbMs3lcsKLr1zViQHnu5hVmyCHWlo9 M7dzzRdif9cpduaXUB9gDq/00JObyxA1Zcmc5eizjo7gJ+WyqsbNcGz0iWMxGF/NCyMDZM 2exsE+K5rqOV4E6I2BY4CxPUebdEiE8cR8Gw/JbC3d+2n1UU2LaqEX2g4PFATg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743169645; 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=2WgZD5cx/M6RjA4/RsQk4HTGwdw5oCiKpu3FU2+Y5/U=; b=O/UhBQw8zTcKwX8ycM+HKR+auKStC2sZWBjbzFUaMWmlYaXfFwwCcQ0Jlul1YWwAY6olX0 6a9Wt5MC/27QoxqXv4LtITMpK5V3UZXhZaf+YHnynqeb19uzuT428clE5OsHDTF7G1cj8B PMUWeR5E1APSHt/kj1D8sxVhfqYtxKvmro00yautP/YphNz2FEbbJLtwojIoUknzc/qx3z y8TNXBRN2SgqwVHXAe7w78A6Ti15I47LQtN/5J5lOGHKG+NzvS1S28IFWU9uMgMWnCElQ0 PldSL1f9jevyqQnPP8l7hHiTBJ9KQuP4E7SyxHwo0LdtrYqrrM+GvFP7+N1hvw== 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 4ZPMK93LbQzm8L for ; Fri, 28 Mar 2025 13:47:25 +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 52SDlPpu016397 for ; Fri, 28 Mar 2025 13:47:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52SDlPwV016396 for bugs@FreeBSD.org; Fri, 28 Mar 2025 13:47:25 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 285726] make: AT&T/SysV-style substitution error if the pattern starts with 't' Date: Fri, 28 Mar 2025 13:47:25 +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 Some People X-Bugzilla-Who: tavianator@tavianator.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: 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=3D285726 Bug ID: 285726 Summary: make: AT&T/SysV-style substitution error if the pattern starts with 't' Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: tavianator@tavianator.com The ${VAR:pattern%.o=3Dreplacement%.c} variable modifier syntax is very use= ful for portable makefiles because GNU make supports the same syntax. But I ju= st noticed a bug: if the pattern starts with 't', make prints an error rather = than performing the substitution. I think the parser is looking for one of the = :t modifiers (:tl, :tu, etc.) $ cat Makefile foo: @echo ${@:f%=3Db%} test: @echo ${@:t%=3Db%} $ make foo boo $ make test make: Bad modifier ":t%=3Db%" for variable "@" =3Db%} --=20 You are receiving this mail because: You are the assignee for the bug.=