All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: submenu fails to see variables
Date: Tue, 7 Sep 2021 11:30:01 +0200	[thread overview]
Message-ID: <20210907093001.GA19874@aepfle.de> (raw)
In-Reply-To: <CAEaD8JPOEeAkrpWZAG-VyaaqXAbX3ca4L1pQeJiEc4wiZ2XWcw@mail.gmail.com>

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.

Olaf


  reply	other threads:[~2021-09-07  9:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 10:46 submenu fails to see variables Olaf Hering
2021-09-06 13:39 ` Vladimir 'phcoder' Serbinenko
2021-09-07  9:30   ` Olaf Hering [this message]
2021-09-07 10:54     ` Dimitri John Ledkov
2021-09-08 19:24       ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210907093001.GA19874@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=grub-devel@gnu.org \
    --cc=phcoder@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.