|
| 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/4.0.221.8 Safari/532.2 |
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: address@hidden
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/
| [Prev in Thread] | Current Thread | [Next in Thread] |