From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mNYkm-00040v-GJ for mharc-grub-devel@gnu.org; Tue, 07 Sep 2021 06:55:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNYkk-00040k-6D for grub-devel@gnu.org; Tue, 07 Sep 2021 06:54:58 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:44852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNYkh-0005WO-VZ for grub-devel@gnu.org; Tue, 07 Sep 2021 06:54:57 -0400 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 773883F322 for ; Tue, 7 Sep 2021 10:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1631012091; bh=STjqP75nfqptZpGUgjcohoWmOwAE0iDamd0oy3gVQbI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=qPWi9MBMKjw9OZyfT7kEpEnvdUNKZeiJs/SPEoKbVkbGLwjK58wV0FTF/+IPqM6GX LokX/vgGzTeB1zepaersM0vm427MOCcQO11pNkEU7F6UUeWZ10KxmBQfQsGJNUnCX0 2DMcAQg/zD2kpXRDLC5hDHsaBpIp1lGpwUyE6ADEahuzg7hhSsREUTJkaKaBftwAa7 XUmFGhYIPv5Ff+ZGdjeR9Tmk4PHY88kyqDoQtw+5NybKd2dxQ4gmDDDR4tMY0tKBNo jEep2yL5odS7qnLmUnhNDA/P9LWE+6vXGUjzuO2TQXXc1MEZgt1Ld6airnT7YxguE2 8LfvCm8HJv7Jg== Received: by mail-il1-f198.google.com with SMTP id w15-20020a056e021a6f00b0022b284d1de4so5818015ilv.13 for ; Tue, 07 Sep 2021 03:54:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=STjqP75nfqptZpGUgjcohoWmOwAE0iDamd0oy3gVQbI=; b=OBQsx4nYNAmbDtW1Fyt/4CZyyhygSgO0SmdVcZ0jVeHzHIvwePR4v9v0coI4IUJZBK 77+sWkwLaGRdFHxXFGGGQDhn3fMqCvnEsYq2UF/qWKEIvZ7K3qZaDxoxwj6sa5xM/iVp jVerhEoKRnp4luOb30tGAjjBHjFREgqp45prFchE/9eN6J1oIDCM24RXIxMgx/uyFMro PLjTjxysAl8xsswQa43QWS02T6PtwiG+75iX0ioGm9QgvDYl7R6r0SguoWLsAzakRkrh MktPDaXzE6cgzt8QJ6d41ax7qiN9sfxUM+RAGQGWQ+Z0T1yrbdOE2mb02jEe3xscR0Kt bOVA== X-Gm-Message-State: AOAM533EYHuEpJNABWUivJDzChErt2sb9HQk8DlNfjCg7zAIHyaH3pkl CGQ9KZWIJCsXtzLrrme+MsBnrvfuBkY/d0Js7pCGiT25x7Q37M2/tWKQFt5abcmOgP5sMBeL/q1 qVXzcGnNFpDoyRf5gTZbTTfYcBieXv/7VeX8R2lFynivf X-Received: by 2002:a02:a1c3:: with SMTP id o3mr15002462jah.59.1631012089850; Tue, 07 Sep 2021 03:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHjjqmxzk82M1fwDfIYSnECqq0kXg/hosirbEZe+7Yo25KU2KyXZQZeGgaRB9njUQaLGfADkKIp/MgQKfc16Y= X-Received: by 2002:a02:a1c3:: with SMTP id o3mr15002426jah.59.1631012089451; Tue, 07 Sep 2021 03:54:49 -0700 (PDT) MIME-Version: 1.0 References: <20210906124637.48eb8af5.olaf@aepfle.de> <20210907093001.GA19874@aepfle.de> In-Reply-To: <20210907093001.GA19874@aepfle.de> From: Dimitri John Ledkov Date: Tue, 7 Sep 2021 11:54:13 +0100 Message-ID: Subject: Re: submenu fails to see variables To: The development of GNU GRUB Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.125.188.123; envelope-from=dimitri.ledkov@canonical.com; helo=smtp-relay-internal-1.canonical.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-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 10:54:58 -0000 On Tue, Sep 7, 2021 at 10:30 AM Olaf Hering wrote: > > On Mon, Sep 06, Vladimir 'phcoder' Serbinenko wrote: > > > Le lun. 6 sept. 2021 =C3=A0 12:49, Olaf Hering a =C3= =A9crit : > > For some reason global variables are not seen in a submenu {} secti= on. > > 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 'exp= ort' in the context of grub. > > The documentation needs to be updated to state what the difference betwee= n 'set key=3Dval', 'export key=3Dval' and plain 'key=3Dval' 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.