Subject: bin/34128: The make(1) operator :M is buggy
To: None <,>
From: None <>
List: netbsd-bugs
Date: 08/02/2006 15:50:00
>Number:         34128
>Category:       bin
>Synopsis:       The make(1) operator :M is buggy
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 02 15:50:00 +0000 2006
>Originator:     Roland Illig
>Release:        NetBSD 3.0_STABLE
System: NetBSD 3.0_STABLE NetBSD 3.0_STABLE (GENERIC) #0: Sat Jun 17 13:16:17 CEST 2006 i386
Architecture: i386
Machine: i386

The :M* operator does not work as expected when it is passed an empty
word in double quotes.


	ARGS=		a "" b
		echo '${ARGS:M*}'

I expected the output to be the same as the input, but one double quote
is missing. I cannot say whether it is the first or the second one. :)


Well, somewhere in var.c, I guess.