[Top][All Lists]

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

[bug #27800] Parser not restored to lua after grub.run( "source script.l

From: Jordan Uggla
Subject: [bug #27800] Parser not restored to lua after grub.run( "source script.lua" )
Date: Sat, 24 Oct 2009 20:33:59 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/ Safari/532.2


                 Summary: Parser not restored to lua after grub.run( "source
script.lua" )
                 Project: GNU GRUB
            Submitted by: jordanu
            Submitted on: Sat 24 Oct 2009 08:33:58 PM GMT
                Category: None
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Jordan Uggla
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
         Reproducibility: Every Time
         Planned Release: None



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:
print( "Hello" )

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

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

Expected output:

Actual output:
Error: unknown command `print('


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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