Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D9hH6-0007FM-EA for mharc-grub-devel@gnu.org; Fri, 11 Mar 2005 05:21:44 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D9hH4-0007EX-L9 for grub-devel@gnu.org; Fri, 11 Mar 2005 05:21:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D9hFb-0006pw-80 for grub-devel@gnu.org; Fri, 11 Mar 2005 05:20:12 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9hFa-0006YN-I8 for grub-devel@gnu.org; Fri, 11 Mar 2005 05:20:10 -0500 Received: from [130.104.239.239] (helo=sprbodj.inma.ucl.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D9gdl-0004W6-Hj for grub-devel@gnu.org; Fri, 11 Mar 2005 04:41:06 -0500 Received: from [130.104.239.234] (pc-babaorom.inma.ucl.ac.be [130.104.239.234]) by sprbodj.inma.ucl.ac.be (Postfix) with ESMTP id 64ECC19C81FE for ; Fri, 11 Mar 2005 10:40:59 +0100 (CET) Message-ID: <423167A8.9070708@auto.ucl.ac.be> Date: Fri, 11 Mar 2005 10:40:56 +0100 From: Vincent Guffens User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en MIME-Version: 1.0 To: The development of GRUB 2 References: <4225D5CE.4050909@auto.ucl.ac.be> <87is41lu26.fsf@student.han.nl> <422EC152.2060106@auto.ucl.ac.be> <200503102122.42050.okuji@enbug.org> In-Reply-To: <200503102122.42050.okuji@enbug.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ucl-inma-MailScanner-Information: Please contact the ISP for more information X-ucl-inma-MailScanner: Found to be clean X-MailScanner-From: guffens@auto.ucl.ac.be Subject: Re: compiling with 2.95 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, 11 Mar 2005 10:21:43 -0000 [...] >>so I have also replaced in gencmdlist.sh the following line: >> >>#grep -v "^#" | sed -ne "/grub_register_command *( *\"/{s/.*( >>*\"\([^\"]*\)\".*/\1: $module/;p}" >>grep -v "^#" | grep -e "grub_register_command *( *\"" | sed -ne >>"s/.*grub_register_command *( *\"\([^,\"]*\).*/\1: $module/;p" > > > Oh, really? This is a very standard sed expression, I think. Ummh... What > should I do? > It looks like the problem comes from the braces in the expression, if I try a simple one like this: $ cat test | sed -e "/grub_register/{s/register/test/;p}" sed: -e expression #1, char 35: Extra characters after command So I split the expression in two parts. From my understanding of it, the following is equivalent to the original sed expression: grep -v "^#" | grep -e "grub_register_command *( *\"" | sed -ne "s/.*( *\"\([^\"]*\)\".*/\1: $module/;p" which is not the same line than the one I sent in the previous mail (although they give the same command.lst) -- Vincent Guffens PhD Student UCL/CESAME tel: +32 10 47 80 30 Value your freedom, or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. -- Richard M. Stallman