From: Ian Jackson Subject: Re: [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too. Date: Mon, 6 Jul 2015 16:54:44 +0100 Message-ID: <21914.42180.83101.539508@mariner.uk.xensource.com> References: <1432734277.14664.229.camel@citrix.com> <1432734323-14128-4-git-send-email-ian.campbell@citrix.com> <21914.38606.239216.668903@mariner.uk.xensource.com> <1436195193.25646.113.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1436195193.25646.113.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too."): > On Mon, 2015-07-06 at 15:55 +0100, Ian Jackson wrote: > > Ian Campbell writes ("[PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too."): ... > > > + echo \\\# $suite backports > > > + echo deb http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} $suite-backports main ... > > This way of saying this requires quite a lot of quoting! > > I don't follow, the only thing above which I think you might be > referring to is the "\\\#". There isn't any other quoting. > > Or do you mean that this needs quoting and is lacking it and that adding > it would make the here document useful? (I don't think you did) I meant the \\\# (which seems like `a lot' of quoting all by itself), but of course also the unnecessary ( ) and the multiple `echo' (which in this context is a kind of quoting of new lines). But if you prefer it this way, fine. > > Have you > > considered using a nested here document ? In shell you can say > > <<'END2' or something and the content will not be subject to > > $-expansion. > > All of the $ here are intended to be expanded at the Perl level. Indeed. So <<'END2' is exactly what you want. Ian.