bugGNU GRUB - Bugs: bug #27710, variable type not exported into...


You are not allowed to post comments on this tracker with your current authentication level.

bug #27710: variable type not exported into new context

Submitted by:  Andreas Born <shador>
Submitted on:  Thu 15 Oct 2009 03:38:48 PM UTC  
Category:  Terminal Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release: 
Release:  Bazaar - trunk Reproducibility:  Every Time
Planned Release:  None

Thu 15 Oct 2009 03:38:48 PM UTC, original submission:  

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.

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

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.

Andreas Born <shador>


Attached Files
file #18886:  export-context.diff added by shador (359B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by shador (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-12-21 phcoder StatusNone => Fixed
        Open/ClosedOpen => Closed
    2009-10-15 shador Attached File- => Added export-context.diff, #18886

    Back to the top

    Powered by Savane 3.5