From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCiXM-0000cy-Iy for qemu-devel@nongnu.org; Wed, 17 Oct 2018 05:54:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCiXJ-0002ip-7X for qemu-devel@nongnu.org; Wed, 17 Oct 2018 05:54:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50118) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCiXI-0002d5-Td for qemu-devel@nongnu.org; Wed, 17 Oct 2018 05:54:41 -0400 References: <20181017094406.4844-1-maozhongyi@cmss.chinamobile.com> <20181017094406.4844-4-maozhongyi@cmss.chinamobile.com> From: Thomas Huth Message-ID: <134b72ef-0f6a-dd71-e761-0d4ae23e31cf@redhat.com> Date: Wed, 17 Oct 2018 11:54:32 +0200 MIME-Version: 1.0 In-Reply-To: <20181017094406.4844-4-maozhongyi@cmss.chinamobile.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/3] po/Makefile: Modern shell scripting (use $() instead of ``) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mao Zhongyi , qemu-devel@nongnu.org Cc: philmd@redhat.com, peter.maydell@linaro.org, sw@weilnetz.de On 2018-10-17 11:44, Mao Zhongyi wrote: > Various shell files contain a mix between obsolete `` > and modern $(); It would be nice to convert to using $() > everywhere. > > Cc: philmd@redhat.com > Cc: peter.maydell@linaro.org > Cc: thuth@redhat.com > Cc: sw@weilnetz.de > > Signed-off-by: Mao Zhongyi > --- > po/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/po/Makefile b/po/Makefile > index e47e262ee6..10605e8eb3 100644 > --- a/po/Makefile > +++ b/po/Makefile > @@ -36,7 +36,7 @@ clean: > > install: $(OBJS) > for obj in $(OBJS); do \ > - base=`basename $$obj .mo`; \ > + base=$(basename $$obj .mo); \ You're changing a Makefile here, so you need to "escape" the "$" by doubling it: base=$$(basename $$obj .mo); \ Thomas