Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MGLYg-00042K-OQ for mharc-grub-devel@gnu.org; Mon, 15 Jun 2009 19:25:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGLYf-000419-AS for grub-devel@gnu.org; Mon, 15 Jun 2009 19:25:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGLYa-0003yB-IW for grub-devel@gnu.org; Mon, 15 Jun 2009 19:25:44 -0400 Received: from [199.232.76.173] (port=46744 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGLYa-0003y8-Ex for grub-devel@gnu.org; Mon, 15 Jun 2009 19:25:40 -0400 Received: from mail-bw0-f216.google.com ([209.85.218.216]:44293) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGLYa-0001rY-4o for grub-devel@gnu.org; Mon, 15 Jun 2009 19:25:40 -0400 Received: by bwz12 with SMTP id 12so1167675bwz.42 for ; Mon, 15 Jun 2009 16:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=boGhVUf5l9KxkZrLVJn52LhZl/dOqMzG9tQ33d3PISs=; b=iUtDHe7Zqts7lrNwAQP/BZGCdvOyrhf2PtEAu+xLSzeCUp5JngsX8IIiDQyvSFdOos FLStrN+K4zj1wmh9TEWfd2/GG1aD/YYBRk77q/QdPfSjWwCevIyyxx4a3GnFp5PZV9+c EU9X9svA3NyYBtqCVh/QE7jKcEVjqbkDv4iEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=VQ4VEjSLjXdZVps1o/UsZtvG1JGb3KS7IV6MpUjuCvkahAHHrbAjwb4u7LI+RGW7Y+ bdRLD4OOEMr+C+hqlxSlDcY9ysekjnbOozqwCMUfyOI64xY7d4Zao1wqNlhXkTfF1XQq 2qc+pPoEz081pkdSFgh5vDhechOigAyUsS1u4= MIME-Version: 1.0 Received: by 10.204.62.133 with SMTP id x5mr7619602bkh.60.1245108339257; Mon, 15 Jun 2009 16:25:39 -0700 (PDT) In-Reply-To: References: <1244844600.15336.11.camel@mj> <1244924139.10218.6.camel@mj> Date: Tue, 16 Jun 2009 01:25:39 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] more scripting fixes 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: Mon, 15 Jun 2009 23:25:45 -0000 Comitted On Mon, Jun 15, 2009 at 5:22 PM, Vladimir 'phcoder' Serbinenko wrote: > On Sat, Jun 13, 2009 at 10:15 PM, Pavel Roskin wrote: >> On Sat, 2009-06-13 at 00:34 +0200, Vladimir 'phcoder' Serbinenko wrote: >> >>> > It looks like \" cancels quoting for the subsequent characters, but i= t >>> > shouldn't. >>> Actually the problem is different: escaping in quoting isn't parsed at >>> all. For first step lexer uses rescue mode parser which isn't that >>> easy to extend compactly. I think that we should leave rescue mode >>> parser as it is now and put a better first-step parser in sh.mod. I'll >>> do it when my todo list scrols to this point >> >> I see. >> >> I have no objections against your patch, but it would be better if you >> split it into logical pieces. =A0Parsing is hard to get right and easy t= o >> break, and we don't have a testsuite to catch breakage. > Good idea will do it when comitting >> >> Some changes are trivial, such as replacing >> >> while (!state->script || ! grub_strlen (state->script)) >> >> with >> >> while (! state->script || ! *state->script) >> >> Other changes actually change the behavior. =A0If you can split the fix >> for escaped quotes from the fix for quoted newlines, it would be good. >> This way, if any breakage is found, it could be traced to a smaller >> change. >> >> -- >> Regards, >> Pavel Roskin >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> > > > > -- > Regards > Vladimir 'phcoder' Serbinenko > --=20 Regards Vladimir 'phcoder' Serbinenko