From: Ian Jackson Subject: Re: [PATCH v4 3/4] libxl: call hotplug scripts from libxl for vbd Date: Mon, 14 May 2012 15:14:36 +0100 Message-ID: <20401.4940.65294.822388@mariner.uk.xensource.com> References: <1336649312-11198-1-git-send-email-roger.pau@citrix.com> <1336649312-11198-4-git-send-email-roger.pau@citrix.com> <20395.60719.885071.452187@mariner.uk.xensource.com> <4FB0FCBE.1020802@citrix.com> <1336999913.31817.69.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1336999913.31817.69.camel@zakaz.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: "xen-devel@lists.xen.org" , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH v4 3/4] libxl: call hotplug scripts from libxl for vbd"): > On Mon, 2012-05-14 at 13:38 +0100, Roger Pau Monne wrote: > > Are you sure about this? This command never returns anything, because it > > is redirected to /dev/null, so we only evaluate if it is able to read > > libxl/disable_udev. If libxl/disable_udev exists this test is passed. > > You don't need the backticks for that though. With the backticks it will > execute whatever happens to be in the key -- I guess it's something > quite benign right now or you'd have seen errors. In fact Roger was right on the narrow point: because the >/dev/null is inside the backticks, the backticks never see any output and it's equivalent to `false` or `true`. I'm pleased that it's not just me that read it the way you did at first :-). But you are of course right in that it's a silly construction. If the output is not wanted, `` should not be used. Ian.