From: "Jan Beulich" Subject: Re: [PATCH 2/7] docs/build: Do not open-code $* Date: Mon, 20 Apr 2015 13:13:29 +0100 Message-ID: <553509890200007800073BEA@mail.emea.novell.com> References: <1429526966-18874-1-git-send-email-andrew.cooper3@citrix.com> <1429526966-18874-3-git-send-email-andrew.cooper3@citrix.com> <553503A30200007800073BA2@mail.emea.novell.com> <5534E94E.3020709@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5534E94E.3020709@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Ian Jackson , Wei Liu , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 20.04.15 at 13:55, wrote: > On 20/04/15 12:48, Jan Beulich wrote: >>>>> On 20.04.15 at 12:49, wrote: >>> --- a/docs/Makefile >>> +++ b/docs/Makefile >>> @@ -73,13 +73,11 @@ endif >>> >>> man1/%.1: man/%.pod.1 Makefile >>> $(INSTALL_DIR) $(@D) >>> - $(POD2MAN) --release=$(VERSION) --name=`echo $@ | sed 's/^man1.//'| \ >>> - sed 's/.1//'` -s 1 -c "Xen" $< $@ >>> + $(POD2MAN) --release=$(VERSION) --name=$* -s 1 -c "Xen" $< $@ >> This is a change in quoting, and while benign now maybe it would be >> better to add back quotation marks? > > Are you sure? The result of the `` was not previously quoted, which is > why I left it unquoted across the change. The invocation via `' itself is a kind of quoting, i.e. the result will not be subject to things like parameter expansion and filename globbing by the shell. > If quoting were an issue, all rules would need updating for $*, $< and $@ That's true, so perhaps still fine as is. Jan