From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HxSmo-0000nH-HP for mharc-grub-devel@gnu.org; Sun, 10 Jun 2007 15:09:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxSmm-0000n9-HN for grub-devel@gnu.org; Sun, 10 Jun 2007 15:09:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxSml-0000mx-II for grub-devel@gnu.org; Sun, 10 Jun 2007 15:09:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxSml-0000mu-Dg for grub-devel@gnu.org; Sun, 10 Jun 2007 15:09:11 -0400 Received: from 245.red-80-24-127.staticip.rima-tde.net ([80.24.127.245] helo=manazas.ensanjose.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxSmk-0004tl-GI for grub-devel@gnu.org; Sun, 10 Jun 2007 15:09:11 -0400 Received: from localhost (manazas.ensanjose.net [127.0.0.1]) by manazas.ensanjose.net (Postfix) with ESMTP id 21E54D32AE for ; Sun, 10 Jun 2007 21:09:06 +0200 (CEST) Received: from manazas.ensanjose.net ([127.0.0.1]) by localhost (manazas.ensanjose.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32511-02 for ; Sun, 10 Jun 2007 21:09:05 +0200 (CEST) Received: from [192.168.2.22] (unknown [82.198.115.76]) by manazas.ensanjose.net (Postfix) with ESMTP id 771AAD321B for ; Sun, 10 Jun 2007 21:09:05 +0200 (CEST) Message-ID: <466C4C2D.6030907@raulete.net> Date: Sun, 10 Jun 2007 21:08:29 +0200 From: adrian15 User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: multipart/mixed; boundary="------------020306010603090303060009" X-detected-kernel: Linux 2.4-2.6 Subject: help, configfile, pager and X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 19:09:13 -0000 This is a multi-part message in MIME format. --------------020306010603090303060009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here is a patch for some of the problems that I found in my miscelanea mails. More to come. :) adrian15 diff -urN grub2_2007_05_31_original/ChangeLog grub2_2007_05_31_small_fixes/ChangeLog --- grub2_2007_05_31_original/ChangeLog 2007-05-20 11:10:05.000000000 +0200 +++ grub2_2007_05_31_small_fixes/ChangeLog 2007-06-10 18:48:40.000000000 +0200 @@ -1,3 +1,10 @@ +2007-06-21 adrian15 + * kern/main.c: Pager variable is now set to 0 by default. + * commands/help.c: Help command help shows that with no pattern + all the commands are shown. + * commands/configfile.c: Configfile command help tells the user that + that it runs the config file with another context. + 2007-05-20 Robert Millan * util/update-grub_lib.in: New file. diff -urN grub2_2007_05_31_original/commands/configfile.c grub2_2007_05_31_small_fixes/commands/configfile.c --- grub2_2007_05_31_original/commands/configfile.c 2006-06-04 17:56:54.000000000 +0200 +++ grub2_2007_05_31_small_fixes/commands/configfile.c 2007-06-10 18:36:19.000000000 +0200 @@ -60,7 +60,7 @@ (void) mod; /* To stop warning. */ grub_register_command ("configfile", grub_cmd_configfile, GRUB_COMMAND_FLAG_BOTH, "configfile FILE", - "Load another config file.", 0); + "Load another config file with a new context.", 0); grub_register_command ("source", grub_cmd_source, GRUB_COMMAND_FLAG_BOTH, "source FILE", "Load another config file without changing context.", diff -urN grub2_2007_05_31_original/commands/help.c grub2_2007_05_31_small_fixes/commands/help.c --- grub2_2007_05_31_original/commands/help.c 2005-11-13 16:47:08.000000000 +0100 +++ grub2_2007_05_31_small_fixes/commands/help.c 2007-06-10 18:20:03.000000000 +0200 @@ -98,7 +98,7 @@ { (void)mod; /* To stop warning. */ grub_register_command ("help", grub_cmd_help, GRUB_COMMAND_FLAG_CMDLINE, - "help [PATTERN ...]", "Show a help message.", 0); + "help [PATTERN ...]", "Show a command help. No pattern shows all available commands.", 0); } GRUB_MOD_FINI(help) diff -urN grub2_2007_05_31_original/kern/main.c grub2_2007_05_31_small_fixes/kern/main.c --- grub2_2007_05_31_original/kern/main.c 2006-04-25 22:08:31.000000000 +0200 +++ grub2_2007_05_31_small_fixes/kern/main.c 2007-06-10 18:12:53.000000000 +0200 @@ -127,6 +127,9 @@ grub_machine_set_prefix (); grub_set_root_dev (); + /* Set pager and other unimportant variables */ + grub_env_set ("pager", "0"); + /* Load the normal mode module. */ grub_load_normal_mode (); --------------020306010603090303060009 Content-Type: text/x-patch; name="help_and_pager.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="help_and_pager.patch" diff -urN grub2_2007_05_31_original/ChangeLog grub2_2007_05_31_small_fixes/ChangeLog --- grub2_2007_05_31_original/ChangeLog 2007-05-20 11:10:05.000000000 +0200 +++ grub2_2007_05_31_small_fixes/ChangeLog 2007-06-10 18:48:40.000000000 +0200 @@ -1,3 +1,10 @@ +2007-06-21 adrian15 + * kern/main.c: Pager variable is now set to 0 by default. + * commands/help.c: Help command help shows that with no pattern + all the commands are shown. + * commands/configfile.c: Configfile command help tells the user that + that it runs the config file with another context. + 2007-05-20 Robert Millan * util/update-grub_lib.in: New file. diff -urN grub2_2007_05_31_original/commands/configfile.c grub2_2007_05_31_small_fixes/commands/configfile.c --- grub2_2007_05_31_original/commands/configfile.c 2006-06-04 17:56:54.000000000 +0200 +++ grub2_2007_05_31_small_fixes/commands/configfile.c 2007-06-10 18:36:19.000000000 +0200 @@ -60,7 +60,7 @@ (void) mod; /* To stop warning. */ grub_register_command ("configfile", grub_cmd_configfile, GRUB_COMMAND_FLAG_BOTH, "configfile FILE", - "Load another config file.", 0); + "Load another config file with a new context.", 0); grub_register_command ("source", grub_cmd_source, GRUB_COMMAND_FLAG_BOTH, "source FILE", "Load another config file without changing context.", diff -urN grub2_2007_05_31_original/commands/help.c grub2_2007_05_31_small_fixes/commands/help.c --- grub2_2007_05_31_original/commands/help.c 2005-11-13 16:47:08.000000000 +0100 +++ grub2_2007_05_31_small_fixes/commands/help.c 2007-06-10 18:20:03.000000000 +0200 @@ -98,7 +98,7 @@ { (void)mod; /* To stop warning. */ grub_register_command ("help", grub_cmd_help, GRUB_COMMAND_FLAG_CMDLINE, - "help [PATTERN ...]", "Show a help message.", 0); + "help [PATTERN ...]", "Show a command help. No pattern shows all available commands.", 0); } GRUB_MOD_FINI(help) diff -urN grub2_2007_05_31_original/kern/main.c grub2_2007_05_31_small_fixes/kern/main.c --- grub2_2007_05_31_original/kern/main.c 2006-04-25 22:08:31.000000000 +0200 +++ grub2_2007_05_31_small_fixes/kern/main.c 2007-06-10 18:12:53.000000000 +0200 @@ -127,6 +127,9 @@ grub_machine_set_prefix (); grub_set_root_dev (); + /* Set pager and other unimportant variables */ + grub_env_set ("pager", "0"); + /* Load the normal mode module. */ grub_load_normal_mode (); --------------020306010603090303060009--