* grub-core/script/argv.c (grub_script_argv_split_append): Skip leading

spaces.
	* tests/grub_script_leading_whitespace.in: New file.
	* Makefile.util.def (grub_script_leading_whitespace): New test.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-19 13:29:43 +01:00
parent ba287dd8e0
commit ac6fd21803
4 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
spaces.
* tests/grub_script_leading_whitespace.in: New file.
* Makefile.util.def (grub_script_leading_whitespace): New test.
2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub

View file

@ -540,6 +540,12 @@ script = {
common = tests/grub_script_echo1.in;
};
script = {
testcase;
name = grub_script_leading_whitespace;
common = tests/grub_script_leading_whitespace.in;
};
script = {
testcase;
name = grub_script_echo_keywords;

View file

@ -132,6 +132,9 @@ grub_script_argv_split_append (struct grub_script_argv *argv, const char *s)
if (! s)
return 0;
while (*s && grub_isspace (*s))
s++;
while (! errors && *s)
{
p = s;

View file

@ -0,0 +1,4 @@
#! @builddir@/grub-shell-tester
list=" 1 2 3"
echo $list