bugGNU GRUB - Bugs: bug #27800, Parser not restored to lua after...

 
 

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

bug #27800: Parser not restored to lua after grub.run( "source script.lua" )

Submitted by:  Jordan Uggla <jordanu>
Submitted on:  Sat 24 Oct 2009 08:33:58 PM UTC  
 
Category: NoneSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Jordan Uggla
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Sat 24 Oct 2009 08:33:58 PM UTC, original submission:

When you run grub.run( "source script.lua" ) in a lua script "script.lua" will be successfully sourced but the rest of the lua script will be parsed as sh instead of lua. To reproduce create two files in /boot/grub:

hello.lua with contents:
#!lua
print( "Hello" )

hello_world.lua with contents:
#!lua
grub.run( "source $prefix/hello.lua" )
print( "World!" )

then boot grub and run "source $prefix/hello_world.lua"

Expected output:
Hello
World!

Actual output:
Hello
Error: unknown command `print('

Jordan Uggla <jordanu>

 

No files currently attached

 

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 jordanu (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 01 May 2010 11:51:13 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1