From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YrnqW-0003pJ-QY for mharc-grub-devel@gnu.org; Mon, 11 May 2015 09:34:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrnqR-0003oA-7E for grub-devel@gnu.org; Mon, 11 May 2015 09:34:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrnqQ-0005DP-66 for grub-devel@gnu.org; Mon, 11 May 2015 09:34:07 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::9]:11768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrnqP-0005Ce-S0 for grub-devel@gnu.org; Mon, 11 May 2015 09:34:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1431351243; l=591; s=domk; d=aepfle.de; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Subject:Cc:To:From:Date; bh=Ae1qlb3rERdKilxalsJc0lA+8PPaPL3peH4GN2lTspc=; b=mIRHCufr/6jLMCUlsQan92Rsf6lf1WH+6qZENVoHQYhF63Ge4MnZm4nshz0Ivb0wAsE /8U8Hh37a2BYeX1G1vKSG6dTQIbJgrr4FAa1qHsCaRmirphgoajYH6tyr6v2+2olLbliv hXvTXTaYwQALIgKwrLWhK6KLdcq9OTlT45E= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnBYfssVY1SE5ClEYfb5sQvxDNUdfk3GFAM3xrxaZN0YQ== X-RZG-CLASS-ID: mo00 Received: from probook.fritz.box ([2001:a60:10a3:eb01:1ec1:deff:feb9:bb48]) by smtp.strato.de (RZmta 37.5 AUTH) with ESMTPSA id 200e2ar4BDY3ALE (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve sect571r1 with 571 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 11 May 2015 15:34:03 +0200 (CEST) Received: by probook.fritz.box (Postfix, from userid 1000) id D17A6502A7; Mon, 11 May 2015 15:34:02 +0200 (CEST) Date: Mon, 11 May 2015 15:34:02 +0200 From: Olaf Hering To: The development of GNU GRUB Subject: Re: [PATCH] Parse commandline in grub-xen Message-ID: <20150511133402.GA3366@aepfle.de> References: <20150511094320.GB17438@aepfle.de> <20150511104130.GA29233@aepfle.de> <20150511110143.GA3595@aepfle.de> <20150511115148.GA18883@aepfle.de> <20150511150339.3f303f6a@opensuse.site> <20150511121554.GA3180@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.22.rev6346 (2013-10-29) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:238:20a:202:5300::9 Cc: Andrey Borzenkov X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2015 13:34:11 -0000 On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote: > On May 11, 2015 2:16 PM, "Olaf Hering" wrote: > > The use of uninitialized vars has to be caught by the script author no? > It never works this way So? How does it work then? Because thats what I will propose to my package maintainer later this week... Olaf > > Code like that is valid IMO: > > > > set localvar="" > > if [ -n "${whatever}" ];then > >   echo "do whatever implies" > >   set localvar="val" > > fi > > if [ -n "${localvar}" ];then > >   echo "do whatever local things" > > fi