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

                 Summary: grub-mkconfig produces incorrect output ('t' instead
of 't' hard tab)
                 Project: GNU GRUB
            Submitted by: schweikh
            Submitted on: Sun 26 Jan 2014 07:21:20 PM GMT
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Jens Schweikhardt
        Originator Email: schwe...@schweikhardt.net
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 2.00
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

I'm using grub 2.00 on FreeBSD 10-STABLE.
grub-mkconfig produces output that looks like this:

submenu ... {
tmenuentry 'FreeBSD, with kFreeBSD kernel' --class freebsd --class bsd --class
os $menuentry_id_option 'kfreebsd-kernel-advanced-52e18a1b003705c2' {
ttinsmod part_msdos
ttinsmod ufs2
ttif [ x$feature_platform_search_hint = xy ]; then
tt  search --no-floppy --fs-uuid --set=root  52e18a1b003705c2
ttelse
tt  search --no-floppy --fs-uuid --set=root 52e18a1b003705c2
ttfi
t   echo            'Loading kernel of FreeBSD kernel ...'
t   kfreebsd        /boot/kernel/kernel
t   kfreebsd_loadenv    /boot/device.hints
ttinsmod part_msdos
ttinsmod ufs2
ttif [ x$feature_platform_search_hint = xy ]; then
tt  search --no-floppy --fs-uuid --set=root  52e18a1b003705c2
ttelse
tt  search --no-floppy --fs-uuid --set=root 52e18a1b003705c2
ttfi
t   kfreebsd_module_elf /boot/kernel/ufs.ko
t   set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/52e18a1b003705c2
t   set kFreeBSD.vfs.root.mountfrom.options=rw
t}




This happens due to commands like

   sed -e "s/^/t/"

which use the non-portable GNUism in GNU sed of t meaning tab.
POSIX sed requires this to replace the start of line with a "t" character and
that's what FreeBSD's sed does.

Another case to fix is
submenu_indentation="t"    # assigns backslash followed by t
sed -e "s/..../$submenu_indentation/"





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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