This patch allow empty lines and comments typed in without crying.
KR
--
Klaus Reichl @ HOME email: [EMAIL PROTECTED]
ChangeLog:
* stage2/cmdline.c (enter_cmdline): Repeat if the user hits an
empty line or comment line (don't complain about unrecognized
command in that case).
Patch:
diff -ru --exclude-from=exclude.grub grub-99-11-06/stage2/cmdline.c
grub/stage2/cmdline.c
--- grub-99-11-06/stage2/cmdline.c Fri Oct 29 06:33:02 1999
+++ grub/stage2/cmdline.c Sun Nov 7 16:30:01 1999
@@ -124,9 +124,15 @@
print_error ();
errnum = ERR_NONE;
- /* Get the command-line with the minimal BASH-like interface. */
- if (get_cmdline (PACKAGE "> ", heap, 2048, 0, 1))
- return;
+ /* Get the command-line with the minimal BASH-like interface.
+ Repeat until we see something on the cmdline. */
+ do
+ {
+ *heap = 0;
+ if (get_cmdline (PACKAGE "> ", heap, 2048, 0, 1))
+ return;
+ }
+ while (heap [0] == '\0' || heap [0] == '#');
/* Find a builtin. */
builtin = find_command (heap);