URL:
<http://savannah.gnu.org/bugs/?27800>
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: [email protected]
Open/Closed: Open
Discussion Lock: Any
Release:
Release: other
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
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('
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27800>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub