On Friday 08 February 2008 17:18, Robert Millan wrote:
> Fixes an ugly result of setting timeout=0.
>
> When this is combined with the "sleep" patch I just sent, user can
> implement hiddenmenu-like functionality via scripting:
>
> echo -n "Press `ESC' to enter the menu... "
> if sleep -v -i 10 ; then
>   set timeout=10
> else
>   set timeout=0
> fi

I think this is a bit strange. I don't think anybody expects that "sleep" 
outputs a counter or is interrupted by a key input. It is too different from 
POSIX's sleep.

My preference is rather to extend "read". Bash's "read" accepts a timeout and 
some other options.

Okuji


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

Reply via email to