Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mNXQk-0007BQ-Fq for mharc-grub-devel@gnu.org; Tue, 07 Sep 2021 05:30:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNXQh-0007Az-Dv for grub-devel@gnu.org; Tue, 07 Sep 2021 05:30:12 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.218]:34691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNXQe-0000xo-6C for grub-devel@gnu.org; Tue, 07 Sep 2021 05:30:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1631007005; s=strato-dkim-0002; d=aepfle.de; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=jfEeRDiSY2GSxlyINs2BxFgut828pVXCGTpY+ahHA/U=; b=hBu4VTjEUDzqes2CWLTIithEqeuzCLWdiS9JQiy4/PwUr/oALb0/Ta+F0rn/+HTpdP AK/6nlbUvAtNU9R6gu+pxxqT1NQ2Bh35yCl9Xv+9tysZvc8KyZPK4CAeUzxc0RdRn+Ke gxRQ5k/QEpJiiVP4ZczAkvFG3fYRCJ+VaeSkLDS+lSfTr26fQoTemyZ4Cmltsg4srwJk DzJEJ2RKKpSkpPyfa2tIYgln0gT5PKUX9lpIsiKwzHlB+buADL99UaWMOMkIV6/RtyXz K+M+ppyXOsCTxXHw5Z+d7noKkeSdpeqG812banTdDZQRuxmp7B8SKrMT0XuGasd/r6sK TnWQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QDiZbDmui9LcK/RdXt7GAQpV1nK0bLlEVeqJ1MIdWQY3nMbbL+UAjyntZ4WGBH1WwriCk=" X-RZG-CLASS-ID: mo00 Received: from aepfle.de by smtp.strato.de (RZmta 47.33.1 AUTH) with ESMTPSA id z07ec7x879U50NE (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 7 Sep 2021 11:30:05 +0200 (CEST) Date: Tue, 7 Sep 2021 11:30:01 +0200 From: Olaf Hering To: Vladimir 'phcoder' Serbinenko Cc: The development of GNU GRUB Subject: Re: submenu fails to see variables Message-ID: <20210907093001.GA19874@aepfle.de> References: <20210906124637.48eb8af5.olaf@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: none client-ip=81.169.146.218; envelope-from=olaf@aepfle.de; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2021 09:30:13 -0000 On Mon, Sep 06, Vladimir 'phcoder' Serbinenko wrote: > Le lun. 6 sept. 2021 à 12:49, Olaf Hering 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