From owner-freebsd-hackers Mon Oct 14 2:57:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0407237B401 for ; Mon, 14 Oct 2002 02:57:24 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 2451043EAA for ; Mon, 14 Oct 2002 02:57:22 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 32563 invoked from network); 14 Oct 2002 09:57:19 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 14 Oct 2002 09:57:19 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id BFAEE2FDAB2; Mon, 14 Oct 2002 11:57:18 +0200 (CEST) Date: Mon, 14 Oct 2002 11:57:18 +0200 From: Roman Neuhauser To: freebsd-hackers Subject: inconsistency in /usr/bin/make Message-ID: <20021014095718.GU364@freepuppy.bellavista.cz> Mail-Followup-To: freebsd-hackers Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi there, continuing my make adventure, I've stumbled across the following inconsistency. I would even call it a bug. In any event, could someone point me to a place in the make(1) man page where it says that the S and C modifiers dereference variables given in both the pattern and replacement, while the N and M modifiers insist on being fed literal strings? I couldn't find it. Thanks! :) -- If you cc me or take the list(s) out completely I'll most likely ignore your message. --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile NAME= foo.c RE= ^.+\.c$ GLOB= *.c SUBST= SUBST FILES= foo.a foo.b foo.c .BEGIN: @echo '$${FILES} -> ${FILES}' @echo '$${NAME} -> ${NAME}' @echo '$${RE} -> ${RE}' @echo '$${SUBST} -> ${SUBST}' @echo '$${GLOB} -> ${GLOB}' all: works broken works: @echo ${.TARGET}: @echo '$${FILES:S/$${NAME}/$${SUBST}/} -> ${FILES:S/${NAME}/${SUBST}/}' @echo '$${FILES:C/$${RE}/$${SUBST}/} -> ${FILES:C/${RE}/${SUBST}/}' broken: @echo ${.TARGET}: @echo '$${FILES:M$${GLOB}} -> ${FILES:M${GLOB}}' @echo '$${FILES:N$${GLOB}} -> ${FILES:N${GLOB}}' --5/uDoXvLw7AC5HRs-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message