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

Submitted by:  Jordan Uggla <jordanu>
Submitted on:  Tue 08 May 2012 08:43:50 AM UTC  
 
Category: NoneSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 May 2012 10:25:28 AM UTCphcoderStatusNone=>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.1-cleanup1