Bug#624815: os-prober produces garbage when menu.lst has titles containing asterisks (*)

2011-05-01 Thread Mi
Package: os-prober Version: 1.42 I have a partition with a menu.lst file containing the following line: title * Lenny2 Debian 5.0.5, 2.6.26-2-amd64 on /dev/disk/by-label/root When running update-grub, this produces a very long garbage entry in grub.cfg: menuentry bin boot cdrom dev

Bug#624815: os-prober produces garbage when menu.lst has titles containing asterisks (*)

2011-05-01 Thread Mi
It looks it would be enough to enclose set -- $line between set -f and set +f to prevent wildcard expansion and solve this problem. The patch below seems to work for me, and produced a correct menuentry in grub.cfg: menuentry * Lenny2 Debian 5.0.5, 2.6.26-2-amd64 on

Bug#624815: os-prober produces garbage when menu.lst has titles containing asterisks (*)

2011-05-01 Thread Joey Hess
Mi wrote: It looks it would be enough to enclose set -- $line between set -f and set +f to prevent wildcard expansion and solve this problem. Yes, I've committed such a fix to numerous places in os-prober git already. Sorry for the duplicate work; thanks for your analysis! -- see shy jo