Add variable parsing in $"..." and fix several mismatches with bash.

* Makefile.util.def (grub_script_gettext): New test.
	* grub-core/script/execute.c (parse_string): New function.
	(gettext_append): Likewise.
	(grub_script_arglist_to_argv): Use gettext_append.
	* grub-core/script/yylex.l: Fix slash and newline handling in $"...".
	* tests/grub_script_gettext.in: New file.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-11 14:46:48 +01:00
parent 9fdb2d7b11
commit 546fbe9b5a
5 changed files with 298 additions and 4 deletions

View file

@ -666,6 +666,12 @@ script = {
common = tests/grub_cmd_echo.in;
};
script = {
testcase;
name = grub_script_gettext;
common = tests/grub_script_gettext.in;
};
program = {
testcase;
name = example_unit_test;