From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 14 12:10:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43F9E1065670 for ; Mon, 14 Feb 2011 12:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 337228FC14 for ; Mon, 14 Feb 2011 12:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1ECABXq046428 for ; Mon, 14 Feb 2011 12:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1ECAABS046427; Mon, 14 Feb 2011 12:10:11 GMT (envelope-from gnats) Date: Mon, 14 Feb 2011 12:10:11 GMT Message-Id: <201102141210.p1ECAABS046427@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Anonymous Cc: Subject: Re: bin/154769: [make] :L modifier broken in quoted strings X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anonymous List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 12:10:11 -0000 The following reply was made to PR bin/154769; it has been noted by GNATS. From: Anonymous To: Garrett Cooper Cc: bug-followup@FreeBSD.org Subject: Re: bin/154769: [make] :L modifier broken in quoted strings Date: Mon, 14 Feb 2011 15:05:38 +0300 Garrett Cooper writes: >> cat Makefile.1 > FOO?= bar > .if "${FOO:L}" == "bar" > .warning "match!" > .else > .warning "no match!" > .endif >> make -f Makefile.1 FOO=bar > "Makefile.1", line 2: Malformed conditional ("${FOO:L}" == "bar") > "Makefile.1", line 3: "match!" > > .. unquoting the variable works though without the malformed > conditional noise... You can reduce example to .if "bar" == "bar" .warning "match!" .endif and make(1) would still produce $ make "Makefile", line 1: Malformed conditional ("bar" == "bar") "Makefile", line 2: warning: "match!" "Makefile", line 3: if-less endif It was fixed in bmake circa 2004 http://mail-index.netbsd.org/source-changes/2004/04/13/msg145128.html