Robert Millan schrieb:
Better do this like it's done in other scripts (check grub-install).  Not sure
why, I guess it's more portable that way...

Ah, now I know what you ment. However, I cannot really see the advantage in

 grub_probe=${sbindir}/`echo grub-probe | sed ${transform}`

with ${transform}="s,x,x,".

I rather reads like WTF to me... ;)


BTW, in another mail from 4 Feb you asked my if the
"echo ... | cut ..." mess in my script could be simplified with the
"echo ... | read ..." feature. I am sorry, but the answer is "no".

This is because read will run in a separate process and cannot set the variables in the parent shell, see <http://www.unixguide.net/unix/bash/E4.shtml>.

Cheers,
Fabian
--
Dipl.-Phys. Fabian Greffrath

Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum

Telefon: +49 (0)234 / 32-26334
Fax:     +49 (0)234 / 32-14227
E-Mail:  [EMAIL PROTECTED]


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to