bugGNU GRUB - Bugs: bug #36433, Leading spaces after '\' line...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36433: Leading spaces after '\' line continuation cause syntax error

Submitter:  Jordan Uggla <jordanu>
Submitted:  Tue 08 May 2012 08:43:50 AM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Tue 08 May 2012 08:43:50 AM UTC, original submission:  

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.

Jordan Uggla <jordanu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by jordanu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-05-10 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
        SummaryLeading spaces after \'\\\' line continuation cause syntax error Leading spaces after '\' line continuation cause syntax error

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code