Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MdiVJ-0003zE-Mj for mharc-grub-devel@gnu.org; Wed, 19 Aug 2009 06:34:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdiVI-0003x5-2j for grub-devel@gnu.org; Wed, 19 Aug 2009 06:34:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdiVC-0003p6-Q2 for grub-devel@gnu.org; Wed, 19 Aug 2009 06:34:51 -0400 Received: from [199.232.76.173] (port=50302 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdiVC-0003ok-JQ for grub-devel@gnu.org; Wed, 19 Aug 2009 06:34:46 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:52041) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdiVC-00038p-85 for grub-devel@gnu.org; Wed, 19 Aug 2009 06:34:46 -0400 Received: by fxm26 with SMTP id 26so3336854fxm.42 for ; Wed, 19 Aug 2009 03:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=gSLy8kLFUy+y9sfECfvA3N40lbCVCTet9HkUgaCGw9s=; b=BGL4u7nTcO5AsO7RcxmQ/4pdwC4lbAyfH0isGjLKJe9JVHlqHrwRZM7P6rA5PCp7rH 3EPd0qk9syHt+LE+9J3o7VwZVKjCtAU0Wp5Z0emj5rptyYQiTL4nVbesAx9Qpu1ZxH/6 Dyg7XDh/8jCrxJ8yBSYWnN16X+GD0WBHz0xqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=xOe0yen/xVay/OChmOt1M9wNHlQj6fxpZT++6JT0HWQdnu9g6qcNGKObh34K+rBjOC wWrBRb6OGMM1CTCOexv1eUCqtkgLNbOAUO6CvkueJJFBnWu/7CeJ/FsS0S2jgWWHbRlM IJ5u/TL7WpAgJ0Ev+0njRqxEfQuyUkn5wtQ4Y= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.12.2 with SMTP id 2mr4126382fgl.12.1250678083650; Wed, 19 Aug 2009 03:34:43 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Aug 2009 12:34:43 +0200 X-Google-Sender-Auth: 8f086ea17c5920ed Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: Error: [-] ERROR: /var/run/p0f.sock: Connection refused Subject: Re: [RFC] Redesign of the menu system 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: Wed, 19 Aug 2009 10:34:52 -0000 2009/8/19 Vladimir 'phcoder' Serbinenko : >>> To have level or tree-like model you can use '.' as a name separator >>> it will make the system uniform with current FreeBSD booting. >> >> XML/CSS is not the easiest format to work with but a bunch of >> variables which represent a tree is not nice either. >> >> However, apt has settings format that allows to specify variables both >> separately and as trees (using {} nested blocks). >> > Do you mean sth like > set root { > =C2=A0branch { > =C2=A0 =C2=A0 value =3D key; > =C2=A0} > } > ? > This would effectively promote 'set' to a keyword of grub-sh scripting > language but I'm ok with this. Yes, something like that. I am not sure how the configuration parser currently works and what are the implications of adding this syntax. But having a shorthand set root.branch { value1=3Dkey1; value2=3Dkey2; value3=3Dkey3; } for set root.branch.value1=3Dkey1; set root.branch.value2=3Dkey2; set root.branch.value3=3Dkey3; is good for several reasons. At the very least it reduces typing, enhances readability somewhat, and allows for more modular construction of multilevel menus or such. apt uses :: for separator (not .) and any :: can be replaced with { and has to be closed with } then. Thanks Michal