From: Ian Jackson Subject: Re: [OSSTEST PATCH 07/11] cri-getconfig: Provide debugging for get_psql_cmd Date: Mon, 7 Dec 2015 15:02:21 +0000 Message-ID: <22117.40829.244136.392162@mariner.uk.xensource.com> References: <1449257734-26860-1-git-send-email-ian.jackson@eu.citrix.com> <1449257734-26860-8-git-send-email-ian.jackson@eu.citrix.com> <1449482434.29724.32.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a5xJ4-0003Mu-7w for xen-devel@lists.xenproject.org; Mon, 07 Dec 2015 15:02:26 +0000 In-Reply-To: <1449482434.29724.32.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.xenproject.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 07/11] cri-getconfig: Provide debugging for get_psql_cmd"): > On Fri, 2015-12-04 at 19:35 +0000, Ian Jackson wrote: > > If set -x is in force, turn it off for get_psql_cmd: our perl rune is > > uninteresting to see repeated ad infinitum in debugging output. > > I should probably know this, but what is the scope of the set +x here? Is > it confined to get_psql_cmd or will callers find things going surprisingly > quiet? get_psql_cmd is generally used inside $( ), which limits the scope of the +x. Code which wraps get_psql_cmd might do some things after calling it, but not very much. > Experimentally I think it is the latter, which is a shame. Maybe just wrap > the set+perl in ()s ? That would improve things if anyone is likely to redirect get_psql_cmd into a file, but that seems unlikely. I'll do that if you want, though. Ian.