bugGNU GRUB - Bugs: bug #36961, Use of `\t' in sed breaks...

 
 

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

bug #36961: Use of `\t' in sed breaks grub-mkconfig

Submitter:  GrĂ©goire Sutre <gsutre>
Submitted:  Thu 26 Jul 2012 09:57:01 AM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Sun 05 Aug 2012 10:04:33 AM UTC, comment #1: 

Feel free to introduce a new variable $tab set to a tabulation character and use it wherever we have \t

Vladimir Serbinenko <phcoder>
Group administrator
Thu 26 Jul 2012 09:57:01 AM UTC, original submission:  

Various scripts in util/grub.d use `\t' in sed commands to indent
menu entries.

However, on some systems, sed does not recognize `\t', and the
resulting grub.cfg contains lines starting with 't' instead of
tabulations.

The problem occurs on NetBSD, but I guess that other BSDs are affected (as well as OS X?).

To illustrate the problem in detail:

On Debian GNU/Linux:
$ sed --version
GNU sed version 4.2.1
[...]
$ echo "hello" | sed -e "s/^/\t/"
hello

On NetBSD 6.99.3
$ echo "hello" | sed -e "s/^/\t/"
thello

A simple fix is to replace those `\t' by tabulation characters.

Grégoire Sutre <gsutre>
Group Member

 

(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 (Posted a comment)
  • -email is unavailable- added by gsutre (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-18 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
        SummaryUse of `\\t\' in sed breaks grub-mkconfig Use of `\t' in sed breaks grub-mkconfig
    2012-08-05 phcoder SummaryUse of `\\t\' in sed breaks grub-mkconfig Use of `\t' in sed breaks grub-mkconfig

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code