All of lore.kernel.org
 help / color / mirror / Atom feed
* submenu fails to see variables
@ 2021-09-06 10:46 Olaf Hering
  2021-09-06 13:39 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 5+ messages in thread
From: Olaf Hering @ 2021-09-06 10:46 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

For some reason global variables are not seen in a submenu {} section.
Does anyone happen to know why this behavior is useful?

Pseudocode:

set var=val
menuentry "me" {
 set
 echo "var ${var}"
 sleep 3
}

submenu "sm" {
 set
 echo "var ${var}"
 sleep 3
}

Seen with grub 2.02 and 2.04.


Thanks,
Olaf

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-08 19:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-09-07 10:54     ` Dimitri John Ledkov
2021-09-08 19:24       ` Daniel Kiper

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.