[2576] 2009-09-08 Felix Zielcke <[email protected]>

Felix Zielcke <[email protected]> Tue, 08 Sep 2009 15:00:29 +0000
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2576
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2576
Author:   fzielcke
Date:     2009-09-08 15:00:28 +0000 (Tue, 08 Sep 2009)
Log Message:
-----------
2009-09-08  Felix Zielcke  <[email protected]>

	* kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
	`help' if the command exists.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/kern/rescue_parser.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-09-06 15:20:33 UTC (rev 2575)
+++ trunk/grub2/ChangeLog	2009-09-08 15:00:28 UTC (rev 2576)
@@ -1,3 +1,8 @@
+2009-09-08  Felix Zielcke  <[email protected]>
+
+	* kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
+	`help' if the command exists.
+
 2009-09-06  Robert Millan  <[email protected]>
 
 	* INSTALL: Require GCC 4.1.3 or later.

Modified: trunk/grub2/kern/rescue_parser.c
===================================================================
--- trunk/grub2/kern/rescue_parser.c	2009-09-06 15:20:33 UTC (rev 2575)
+++ trunk/grub2/kern/rescue_parser.c	2009-09-08 15:00:28 UTC (rev 2576)
@@ -61,7 +61,8 @@
   else
     {
       grub_printf ("Unknown command `%s'\n", name);
-      grub_printf ("Try `help' for usage\n");
+      if (grub_command_find ("help"))
+	grub_printf ("Try `help' for usage\n");
     }
 
  quit: