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/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
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;
if (! s)
return 0;
+ while (*s && grub_isspace (*s))
+ s++;
+
while (! errors && *s)
{
p = s;
--- /dev/null
+#! @builddir@/grub-shell-tester
+
+list=" 1 2 3"
+echo $list