From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] Fix xencommons for NetBSD Date: Fri, 15 Jul 2011 13:44:08 +0200 Message-ID: <20110715114407.GA17857@aepfle.de> References: <1310716893.634.552.camel@zakaz.uk.xensource.com> <4E200171.5080700@amd.com> <1310721214.634.561.camel@zakaz.uk.xensource.com> <1310722858.634.573.camel@zakaz.uk.xensource.com> <1310724488.634.577.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Roger Pau =?utf-8?B?TW9ubsOp?= Cc: Ian Campbell , Christoph Egger , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, Jul 15, Roger Pau Monné wrote: > Another one, used -n instead of -z when testing the presence of > XENSTORED_ROOTDIR. Sorry for this mess, I'm not really used to make > shell init scripts. + xenstored_pid=$(check_pidfile ${XENSTORED_PIDFILE} ${SBINDIR}/xenstored) + if test -z $xenstored_pid; then Doesnt this expand to 'if test -z ; then' if check_pidfile returns nothing, causing a shell syntax error? Better do 'if test -z "$variable" ; then'. Olaf