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

@ -1,3 +1,14 @@
2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
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.
2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
Fix handling of leading spaces in scripts.