URL:
  <http://savannah.gnu.org/bugs/?36433>

                 Summary: Leading spaces after '\' line continuation cause
syntax error
                 Project: GNU GRUB
            Submitted by: jordanu
            Submitted on: Tue 08 May 2012 08:43:50 AM GMT
                Category: None
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: Bazaar - trunk
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

The following code causes a syntax error in grub but is completely valid and
causes no problems in bash:

echo \
 test

Note the space before "test". With a file test.cfg containing the above two
lines I can run "bash test.cfg" and it will simply print "test\n" as expected
but when I run "grub-script-check test.cfg" I get the following output:

error: out of memory.
error: syntax error.
Syntax error at line 2

I ran into this bug while trying to get bvk's autoiso.cfg working for Super
GRUB2 Disk.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36433>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
Bug-grub@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to