From: Ian Campbell Subject: Re: drjones@redhat.com, vkuznets@redhat.com, leiwang@redhat.com, wshi@redhat.com Date: Thu, 24 Apr 2014 12:33:40 +0100 Message-ID: <1398339220.18537.338.camel@kazak.uk.xensource.com> References: <648058658.7316781.1397784467480.JavaMail.zimbra@redhat.com> <1914427839.7319088.1397785246986.JavaMail.zimbra@redhat.com> <53570FCF.9050708@redhat.com> <53579CDC.1050605@eu.citrix.com> <53585763.40105@redhat.com> <1398329070.18537.243.camel@kazak.uk.xensource.com> <5358D2D9.6040104@eu.citrix.com> <1398331947.18537.271.camel@kazak.uk.xensource.com> <5358F51A.10208@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5358F51A.10208@eu.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: George Dunlap Cc: Lingfei Kong , Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-24 at 12:27 +0100, George Dunlap wrote: > On 04/24/2014 10:32 AM, Ian Campbell wrote: > > On Thu, 2014-04-24 at 10:01 +0100, George Dunlap wrote: > >> On 04/24/2014 09:44 AM, Ian Campbell wrote: > >>> On Thu, 2014-04-24 at 08:14 +0800, Lingfei Kong wrote: > >>>> Maybe another solution is to change the xl command to adapt this. > >>> Feel free to propose a patch but I suspect this would involve too much > >>> surgery to the config file parser. > >>> > >>>> On > >>>> RHEL5 xen hypervisor, I can create a guest with `xm create hvm.cfg > >>>> cpus="0-3"`. As a user I prefer this method, because this will be > >>>> consistent with it's config file and it is strange to use ' to enclose > >>>> the parameters. > >>> That is perfectly normal shell quoting behaviour, nothing strange about > >>> it IMHO. > >> Well having the config file syntax include quotes and brackets is > >> natural. The fact that the shell interprets quotes and brackets is also > >> natural. But the combination of the two leads to a rather unexpected > >> and clunky user interface. > > This happens all the time though, "in find -exec foo \;" in sed and perl > > -e etc etc. It's just the way Unix shells work. > > Maybe it would be more clear then, rather than saying "key=value pairs" > in the man page, to say "a config file snippet"? That might put people > in the mindset of thinking more like "perl -e". I thought (having glanced really quickly yesterday as I filed it in my queue) that your proposed docs change looked pretty good. Ian.