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

> On May 11, 2015 2:16 PM, "Olaf Hering" <o...@aepfle.de> 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

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to