GNU 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" )
Submitter: | Jordan Uggla <jordanu> | ||
Submitted: | Sat 24 Oct 2009 08:33:58 PM UTC | ||
Category: | None | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | Fixed | Privacy: | Public |
Assigned to: | None | Originator Name: | Jordan Uggla |
Open/Closed: | Closed | Release: | other |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-05-01 | phcoder | Status | None | Fixed | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-758e.
Corresponding source code
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('