From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hw0o8-0000Ui-CQ for mharc-grub-devel@gnu.org; Wed, 06 Jun 2007 15:04:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hw0o6-0000U4-Np for grub-devel@gnu.org; Wed, 06 Jun 2007 15:04:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hw0o6-0000Tg-1E for grub-devel@gnu.org; Wed, 06 Jun 2007 15:04:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw0o5-0000TZ-Q9 for grub-devel@gnu.org; Wed, 06 Jun 2007 15:04:33 -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 1Hw0o4-0003eV-9y for grub-devel@gnu.org; Wed, 06 Jun 2007 15:04:33 -0400 Received: from localhost (manazas.ensanjose.net [127.0.0.1]) by manazas.ensanjose.net (Postfix) with ESMTP id DAD1ED444E for ; Wed, 6 Jun 2007 21:04:29 +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 21216-06 for ; Wed, 6 Jun 2007 21:04:29 +0200 (CEST) Received: from [192.168.1.10] (246.Red-83-38-190.dynamicIP.rima-tde.net [83.38.190.246]) by manazas.ensanjose.net (Postfix) with ESMTP id 54145D444D for ; Wed, 6 Jun 2007 21:04:29 +0200 (CEST) Message-ID: <4666F72B.8020906@raulete.net> Date: Wed, 06 Jun 2007 20:04:27 +0200 From: adrian15 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: grub-devel@gnu.org References: <200706051834.l55IY56F003249@correoredir01.dinaserver.com> In-Reply-To: <200706051834.l55IY56F003249@correoredir01.dinaserver.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Subject: Re: grub2 miscelanea questions (1/2) 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: Wed, 06 Jun 2007 19:04:35 -0000 >> 3) Why any grub2.cfg file (I suppose it's the substitute for menu.lst) >> is inside the grub2 source code? > > What do you mean? Usually a program should include examples on how to use their files and document examples and so on... why isn't there any grub2.cfg ? >> 4) Why any doc folder is inside the grub2 source code? > > There is? We need documentation... :) I might work on this too... but as an unofficial documentation. I do not like the rigid official documentations. > >> 5) grub2 lacks >> ================== >> 5.1) pager >> ------------- >> >> When I want to do a big ls the output does not stop screen by screen... >> Is there any hidden pager that I do not know? >> Maybe is not implemented yet? > > set pager=1 > > It just isn't documented :-/ We should be able to prompt with help command (help variables perhaps?) these kind of tricks or pseudocommands. > >> 5.2) Chainload DEVICES >> ------------------------ >> >> How the hell do you boot windows? >> Maybe from a file that has inside it the first 512 bytes from the >> Windows partition? > > chainload (hd0,1)+ > boot I've checked that this works: chainloader (hd0,1)+1 boot >> 6) Compulsory Argument dilemma >> ================================ >> If I run help I can seen things like this: >> >> ls [-f|-l|-s] NAME >> >> and >> >> [ EXPRESSION ] > > Yes? > >> If [ ] means optional it should also mean optional in the case of the >> test alias [ .!!! > > What do you mean? The [] has not a single meaning in this program. If it's written after a command in the help description it means: Optional. If it's used as a program it means that it runs the test command. It might be confusing for some users I suppose. Why did not use to new bash syntax? $((variable)) > >> 7) set help incomplete >> ======================== >> Set help should say that if no argument is set then it shows all the >> environment variables. > > Why would it? Only using set shows all env. variables. Because it is a hidden feature. If you do not how grub does work and type "help set" it shows "Set an environment variable". The user is unable to know that "Only using set shows all env. variables" because it isn't written anywhere. >> 9) help does not complain when no command help is available >> ============================================================= > How it currently works is looking at the first characters. For > example try "help l". I know... but if the first characters do not match with any command beginning I think an error should be prompted. Don't you think so? > >> 10) help --all >> ================= >> Do we need this functionality in grub2? > > Are there hidden commands for which this is important? In that case, > yes. The hipotetical dd command. :) > >> 12) ls and -h argument >> ======================== >> >> This is not an error but it curious. You can ask for the help of command >> with this: >> command -h >> however >> ls -h >> works in a different way. >> >> I suppose we may have the same problem with '-u' in the future. > > Ehm, I am not sure. You mean `-h' is short for help and we should > remove it? I mean that if an user gets used to use the "-h" option for getting grub commands help then when using ls, he will be confused a little. adrian15