Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ICbRQ-0004dV-MM for mharc-grub-devel@gnu.org; Sun, 22 Jul 2007 09:25:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICbRP-0004dQ-6f for grub-devel@gnu.org; Sun, 22 Jul 2007 09:25:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICbRN-0004dE-PR for grub-devel@gnu.org; Sun, 22 Jul 2007 09:25:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICbRN-0004dB-Iw for grub-devel@gnu.org; Sun, 22 Jul 2007 09:25:41 -0400 Received: from smtp-vbr12.xs4all.nl ([194.109.24.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ICbRN-0006Fa-6h for grub-devel@gnu.org; Sun, 22 Jul 2007 09:25:41 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6MDPeIS033855 for ; Sun, 22 Jul 2007 15:25:40 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <46751770.4080807@gmail.com> Mail-Copies-To: mgerards@xs4all.nl Date: Sun, 22 Jul 2007 15:27:14 +0200 In-Reply-To: <46751770.4080807@gmail.com> (adrian15sgd@gmail.com's message of "Sun, 17 Jun 2007 13:13:52 +0200") Message-ID: <878x98fu19.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: FreeBSD 4.6-4.9 Subject: Re: echo gives internal error with \n 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, 22 Jul 2007 13:25:43 -0000 adrian15 writes: > I've activated the echo command (also the pause command) which it is > equivalent to the echo command... and have done some tests: The problem is in the parser. > grub> pause fjfjl > fjfjl > grub> pause "fjfjl" > fjfjl > grub> pause -n \n > error: Internal error > > grub> pause \n > error: Internal error > > grub> pause -n "\n" > \n > grub> pause -e "\n" > > grub> echo fasf > fasf > grub> > > > Two conclusions from these tests: > > 1) When you use \n in string that does not begin with " then it gives an > internal error. I do not see anything special on echo.c so I suppose > it's the fault of the parser, however I have not studied the parser > yet... so marco_g what's your opinnion? True, Bean sent in a patch to fix this. > 2) The -e option is not implemented. :) I've checked the code and it is > not. However I doubt if it's going to work... I ask myself if the grub> > string always appears at the beginning of the line. Do you want to implement this? ;-) This should not be hard to do. > pause is equivalent to echo command but if you want to check what I am > saying check my other email that contains a patch for having both echo > and pause commands. ok. -- Marco