From: Wei Liu Subject: Re: [OSSTEST PATCH RFC v1 08/12] ts-xen-install: install Xen with XSM support if requested Date: Wed, 24 Sep 2014 14:16:45 +0100 Message-ID: <20140924131645.GB14618@zion.uk.xensource.com> References: <1411395121-6528-1-git-send-email-wei.liu2@citrix.com> <1411395121-6528-9-git-send-email-wei.liu2@citrix.com> <1411555294.1781.193.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1411555294.1781.193.camel@kazak.uk.xensource.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: ian.jackson@eu.citrix.com, dgdegra@tycho.nsa.gov, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Sep 24, 2014 at 11:41:34AM +0100, Ian Campbell wrote: > On Mon, 2014-09-22 at 15:11 +0100, Wei Liu wrote: > > + 'find /boot -name \'xenpolicy-*\' -exec basename {} \;'); > > (stray tabs) > > > + # there should only be one xenpolicy file for a clean install > > + my $c = () = $flaskpolicy =~ /xenpolicy/g; > > I'm curious, what does that () do? > This is called "empty parentheses" idiom. It's used to force list context on an expression, and yet return a scalar: the count of items in that list. http://www.perlmonks.org/?node_id=527973 > Does the grub patch thing work on arm (where I'm not sure if grub will > be there or not)? > No. AIUI arm doesn't use grub, does it? Wei.