* grub-core/script/execute.c (grub_script_execute_sourcecode): Split

off new function grub_script_execute_new_scope. Change callers to use
	either of them as appropriate.
	* grub-core/commands/eval.c: New command eval.
	* docs/grub.texi (Commands): Document it.
This commit is contained in:
Andrey Borzenkov 2013-06-07 18:36:42 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 63c2984922
commit 593e430cd6
7 changed files with 50 additions and 13 deletions

View file

@ -3435,6 +3435,7 @@ you forget a command, you can run the command @command{help}
* date:: Display or set current date and time
* drivemap:: Map a drive to another
* echo:: Display a line of text
* eval:: Evaluate agruments as GRUB commands
* export:: Export an environment variable
* false:: Do nothing, unsuccessfully
* gettext:: Translate a string
@ -3812,6 +3813,15 @@ character will print that character.
@end deffn
@node eval
@subsection eval
@deffn Command eval string ...
Concatenate arguments together using single space as separator and evaluate
result as sequence of GRUB commands.
@end deffn
@node export
@subsection export