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: TerminalSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: 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.

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.

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
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by shador (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Dec 2009 02:34:42 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 15 Oct 2009 03:38:48 PM UTCshadorAttached File-=>Added export-context.diff, #18886

    Back to the top


    Powered by Savane 3.1-cleanup1