grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Parse commandline in grub-xen


From: Olaf Hering
Subject: Re: [PATCH] Parse commandline in grub-xen
Date: Mon, 11 May 2015 15:34:02 +0200
User-agent: Mutt/1.5.22.rev6346 (2013-10-29)

On Mon, May 11, Vladimir 'phcoder' Serbinenko wrote:

> On May 11, 2015 2:16 PM, "Olaf Hering" <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]