bug-grub
[Top][All Lists]
Advanced

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

[bug #27710] variable type not exported into new context


From: Andreas Born
Subject: [bug #27710] variable type not exported into new context
Date: Thu, 15 Oct 2009 15:38:49 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.2) Gecko/20090903 Iceweasel/3.5.2 (Zenwalk GNU Linux)

URL:
  <http://savannah.gnu.org/bugs/?27710>

                 Summary: variable type not exported into new context
                 Project: GNU GRUB
            Submitted by: shador
            Submitted on: Do 15 Okt 2009 15:38:48 GMT
                Category: Terminal
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: SVN
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

A variable created and exported afterwards, isn't marked 'export' after a new
context was created by issuing configfile. Thus if you issue another time
configfile the variable is unset.
This means recursive menus deeper than 2 menus are not possible by loading
another configfile.

Example:
set blub=blob
export blub
configfile <file>
configfile <file>
echo $blub
=> nothing, blub was unset after the second configfile (prefix also so
everything fails).

Workaround:
In every new context (-> every .cfg file) (re)export the variable (and
prefix, root).

Attached is a patch which marks variables copied into the new context again
'export' preventing breakage of prefix and root.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Do 15 Okt 2009 15:38:48 GMT  Name: export-context.diff  Size: 359B  
By: shador

<http://savannah.gnu.org/bugs/download.php?file_id=18886>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27710>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

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