From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKLe8-0001dc-B6 for mharc-grub-devel@gnu.org; Wed, 30 Jan 2008 17:43:08 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKLe6-0001cZ-Gh for grub-devel@gnu.org; Wed, 30 Jan 2008 17:43:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKLe4-0001a8-Ug for grub-devel@gnu.org; Wed, 30 Jan 2008 17:43:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKLe4-0001a0-Rw for grub-devel@gnu.org; Wed, 30 Jan 2008 17:43:04 -0500 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JKLe4-0007mc-F3 for grub-devel@gnu.org; Wed, 30 Jan 2008 17:43:04 -0500 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 30 Jan 2008 17:43:04 -0500 Received: from [192.168.1.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id B3BA9619058 for ; Wed, 30 Jan 2008 17:43:03 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <1201731230.15073.45.camel@solid.paris.klabs.be> References: <1201731230.15073.45.camel@solid.paris.klabs.be> Content-Type: text/plain Date: Wed, 30 Jan 2008 17:43:03 -0500 Message-Id: <1201732983.8103.62.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Questions for writing manpages 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, 30 Jan 2008 22:43:06 -0000 On Wed, 2008-01-30 at 23:13 +0100, Franklin PIAT wrote: > Hello, > > I have some questions for the writing the documentation[1]. > > ** How to use "If [ $x=foo ] Then Else fi" statement ? > > I've successfully used : > if [ A=B ] ; then echo "foo" ; else echo "bar" ; fi" > > But I cannot use variables, with either : > if [ $i=B ] ; then echo "foo" ; else echo "bar" ; fi" > if [ X$i=XB ] ; then echo "foo" ; else echo "bar" ; fi" If we don't care about UNIX from the seventies, this should work fine: if [ "$x" = "$y" ]; then echo "foo"; else echo "bar"; fi I guess you don't assign the variables correctly. Please make sure you don't use spaces around "=" in assignments, but use them in comparisons. You can replace echo "foo" with echo "foo$i." to see the value of $i in the same expression. > ** How would you define the "rescue" mode ? In what situation > can it be useful to the user ? I think the idea was to move most interactivity to a separate module called normal. If that module is not available, the internal "rescue" mode is used to make it possible to load modules. I don't know how practical it is. > ** Does the "ofconsole" console supports unicode ? No. -- Regards, Pavel Roskin