From: Thomas De Schampheleire Date: Fri, 19 Sep 2014 07:20:21 +0200 Subject: [Buildroot] [PATCH] pkg-utils: the MESSAGE macro already double-quotes the message In-Reply-To: References: <1411079328-30097-1-git-send-email-yann.morin.1998@free.fr> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Danomi Manchego schreef: >Yann, > >On Thu, Sep 18, 2014 at 6:28 PM, Yann E. MORIN wrote: >> ... so passing a double-quoted message to the macro defeats the quoting >> altogether. >> >> Remove double-quotation of messages. Change made with: >> $ sed -r -i -e 's/(call MESSAGE,)"(.*)"\)/\1\2)/g' \ >> $(git grep -l -E 'call MESSAGE."') >> > >If there's any virtue to limiting the patch, I think that you could >end the quotes in MESSAGE before the $1, and resume them after the $1, >and then leave the quotes in all those files: > >MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) >"$(1)"$(TERM_RESET)" > > ^ >^ > But then most $1 instances will be unquoted, so I don't think this is fine.Suppose the message contains a semicolon... Best regards, Thomas