grub-devel
[Top][All Lists]
Advanced

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

Re: submenu fails to see variables


From: Daniel Kiper
Subject: Re: submenu fails to see variables
Date: Wed, 8 Sep 2021 21:24:51 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, Sep 07, 2021 at 11:54:13AM +0100, Dimitri John Ledkov wrote:
> On Tue, Sep 7, 2021 at 10:30 AM Olaf Hering <olaf@aepfle.de> wrote:
> >
> > On Mon, Sep 06, Vladimir 'phcoder' Serbinenko wrote:
> >
> > > Le lun. 6 sept. 2021 à 12:49, Olaf Hering <olaf@aepfle.de> a écrit :
> > >     For some reason global variables are not seen in a submenu {} section.
> > >     Does anyone happen to know why this behavior is useful?
> > > You need to export variable to make it visible in submenu
> >
> > Thanks. This was less than obvious. I did not expect a command named 
> > 'export' in the context of grub.
> >
> > The documentation needs to be updated to state what the difference between 
> > 'set key=val', 'export key=val' and plain 'key=val' actually is.
>
> I have seen somewhere that some distros applied a patch to simply
> export all variables always; or like not to create new contexts for
> submenus, to keep the variable space the same.
>
> Imho keeping variable space global, and exported by default seems to
> lead to least surprises. But it is a behaviour change/break.

I would prefer to keep behavior as is and document it.

Dimitri, Olaf, could one of you do it?

Daniel



reply via email to

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