From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ET5Mf-0004vh-Vm for mharc-grub-devel@gnu.org; Fri, 21 Oct 2005 18:27:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ET5Md-0004va-Nc for grub-devel@gnu.org; Fri, 21 Oct 2005 18:27:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ET5Md-0004vO-99 for grub-devel@gnu.org; Fri, 21 Oct 2005 18:27:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ET5Md-0004vL-6f for grub-devel@gnu.org; Fri, 21 Oct 2005 18:27:51 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ET5Md-0006GB-8H for grub-devel@gnu.org; Fri, 21 Oct 2005 18:27:51 -0400 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 7C62E8871 for ; Sat, 22 Oct 2005 00:27:50 +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 25991-09 for ; Sat, 22 Oct 2005 00:27:49 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id C224D8814 for ; Sat, 22 Oct 2005 00:27:49 +0200 (CEST) Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 6CA65C047 for ; Sat, 22 Oct 2005 00:27:49 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: grub-devel@gnu.org From: Marco Gerards Date: Sat, 22 Oct 2005 00:27:50 +0200 Message-ID: <87ach2o68p.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: Fancy command line parsing 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: Fri, 21 Oct 2005 22:27:51 -0000 Hi, At the moment I am working on a patch to fix two (related) bugs. One bug is that tab completion does not escape spaces, the other is that it does not take quotes into consideration. What I did is rewriting grub_split_cmdline. There are some helper functions which make handling the command line very flexible. The patch is almost ready and I'll explain it a bit when I send it in. This patch will affect how the scripting support can be implemented. The parsing can be done using the helper functions I wrote so code can be efficiently shared. Serbinenko, are you still working on scripting support? After sending in my patch I will explain what the best way is to use this command line handling for scripting support. I hope we can talk about this so we can add scripting support real soon. The main reason why I send in this email is to prevent anyone from doing redundant work, so just ignore those two bugs while I am working on it. And please do not work on the command line and tab completion code, it will be changed a lot... Thanks, Marco