Subject: make(1) :M / :N doesn't deal with sets
To: None <tech-userlevel@NetBSD.org>
From: Masao Uebayashi <uebayasi@gmail.com>
List: tech-userlevel
Date: 12/16/2007 00:47:37
I think make(1) :M / :N modifiers should deal with sets as arguments.

--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<
INPUT=	a b c
WANTED=	a b
OUTPUT=	${INPUT:M${WANTED}}

all:
	@echo ${OUTPUT}
-------->8-------->8-------->8-------->8-------->8-------->8-------->8-------->8

This doesn't work now since :M thinks of ${WANTED} to be a single word
even if it contains whitespaces.  IMO this is inconsistent since :M
thinks of ${INPUT} as multiple words.

Masao