On Fri, Feb 29, 2008 at 02:46:17PM +0100, Fabian Greffrath wrote:
> 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... ;)
Maybe Okuji knows... ;-)
> 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>.
Ok no big deal.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel