NetBSD Problem Report #61038

From www@netbsd.org  Sat Nov 21 06:24:07 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3200B1A923D
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 21 Nov 2026 06:24:07 +0000 (UTC)
Message-Id: <20261121062405.C5A881A923E@mollari.NetBSD.org>
Date: Sat, 21 Nov 2026 06:24:05 +0000 (UTC)
From: sjg@crufty.net
Reply-To: sjg@crufty.net
To: gnats-bugs@NetBSD.org
Subject: make: escape bug in :C
X-Send-Pr-Version: www-1.0
X-From4GNATS: "sjg@crufty.net via gnats" <gnats-admin@NetBSD.org>

>Number:         61038
>Category:       toolchain
>Synopsis:       make: escape bug in :C
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 21 06:25:00 +0000 2026
>Originator:     Simon Gerraty
>Release:        
>Organization:
NetBSD
>Environment:
FreeBSD 14.4-RELEASE-p8
>Description:
Reported by FreeBSD user.

% make -V '${MAKE:C/(a)/\1/}'        
make
% make -V '${MAKE:C/(a)/\\/}' 
m\ke
% make -V '${MAKE:C/(a)/\\\1/}'
m\1ke
%

The last is expected to output m\ake
>How-To-Repeat:
See above
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.