NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/61038: make: escape bug in :C



The following reply was made to PR toolchain/61038; it has been noted by GNATS.

From: "Simon J. Gerraty" <sjg%crufty.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: sjg%crufty.net@localhost
Subject: Re: toolchain/61038: make: escape bug in :C
Date: Sat, 05 Dec 2026 11:31:11 -0800

 It is asserted that make(1) is correct in its behavior.
 
 It is at least inconsistent:
 
 	make -r -f /dev/null -V '${MAKE:C/(a)/\\,\1/}'
 	m\,ake
 
 	make -r -f /dev/null -V '${MAKE:C/(a)/\\\\,\1/}'
 	m\,ake
 
 hard to argue that both are correct.
 
 If ${MAKE:C/(a)/\\,\1/} should output "m\,ake" rather than "m,ake", then
 ${MAKE:C/(a)/\\\1/} should output "m\ake" rather than "m\1ke"
 
 --sjg
 



Home | Main Index | Thread Index | Old Index