From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ETMS9-0003C0-ED for mharc-grub-devel@gnu.org; Sat, 22 Oct 2005 12:42:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETMS7-0003BO-LU for grub-devel@gnu.org; Sat, 22 Oct 2005 12:42:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETMS6-0003AH-K8 for grub-devel@gnu.org; Sat, 22 Oct 2005 12:42:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETMS6-0003AA-0F for grub-devel@gnu.org; Sat, 22 Oct 2005 12:42:38 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETMS5-00057D-2F for grub-devel@gnu.org; Sat, 22 Oct 2005 12:42:37 -0400 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 8D4A88906 for ; Sat, 22 Oct 2005 18:42:34 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 02787-04 for ; Sat, 22 Oct 2005 18:42:33 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id CE1E28638 for ; Sat, 22 Oct 2005 18:42:33 +0200 (CEST) Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 9C464C045 for ; Sat, 22 Oct 2005 18:42:33 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <87pspxtzyu.fsf@student.han.nl> <435A50BE.5030801@gmail.com> <87hdb9twr9.fsf@student.han.nl> <435A5CAF.40103@gmail.com> <87d5lxtuyt.fsf@student.han.nl> <435A62C2.6030408@gmail.com> From: Marco Gerards Date: Sat, 22 Oct 2005 18:42:34 +0200 In-Reply-To: <435A62C2.6030408@gmail.com> (Vladimir Serbinenko's message of "Sat, 22 Oct 2005 18:03:14 +0200") Message-ID: <871x2dtsed.fsf@student.han.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: Scripting support 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: Sat, 22 Oct 2005 16:42:39 -0000 Vladimir Serbinenko writes: >>I think we first have to determine: >> >>1) Which commands should be supported. >> >> > What about && || ! case do done elif else esac fi for function if in > then until while { } [[ ]] This sounds fine to me. Although I don't remember !, { } and [[ ]] anymore. > in scripting engine. I think that time is completely useless. What do > you think about select? I am not sure about select. What is "time" you are talking about? If you are talking about the command time which measures the running time, it is just a command. If we want it, we can easily implement it as a GRUB command. >>2) The smallest subset of commands that should be generated. >> > I think If we take the approach I described in my other email, we don't need this. So I wait for commenting about this. >>Perhaps the best is to make a list of tokens we need to support. With >>such list we can determine how to detect them. >> >> > I think just comparing (after \ one character is not compared) might > be enough. The \ is already handled by the state machine, when I commit it. So it is not something you have to worry about. :-) > ; newline ;; && || ! case do done elif else esac fi for function if in > then until while { } [[ ]] Right. And how about menu entries? What was the last thing we agreed about?