From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WP3xh-0003Jx-Nz for mharc-grub-devel@gnu.org; Sun, 16 Mar 2014 01:50:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP3xX-000350-DL for grub-devel@gnu.org; Sun, 16 Mar 2014 01:50:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WP3xP-0003Yz-0m for grub-devel@gnu.org; Sun, 16 Mar 2014 01:50:07 -0400 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:41167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WP3xO-0003Yr-P3 for grub-devel@gnu.org; Sun, 16 Mar 2014 01:49:58 -0400 Received: by mail-la0-f50.google.com with SMTP id y1so2900826lam.9 for ; Sat, 15 Mar 2014 22:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=N6zgtXD0DYJQTVnC/Y0pxots4jqWhrPKSfJnTky/UA0=; b=ZsyMLXqxZRPF3oMACNp0yDFbVrKx6pZiScwZo7bV+aIxk2iJvPMjzMb125rSyCOG0Z sHUVdPDp2awX1eabccPzsK5xcWIuiC/3QFuRYXidcPZgAUfpv5Xg8HnHEoDOXkzO6uZF uWdvcGKKSXwhbujL1ipePfaygWUdEma6xq/IQrAkQ0kND096qliMQjVM2Knptu7zRcCI g1t27vzcJpascwsr5bcsRkTqPhJe/hdrjgcdJeIzr+WyrWfKN315HseQJsIGPQ+RyIDB kSkzQsxEHL5kknJYzu/tSxS30F9QA6ZtMt9ohY5nSypsrhP+6q59N0s920f0rN+8mg/M f5Tw== X-Received: by 10.112.140.202 with SMTP id ri10mr11389276lbb.9.1394948997047; Sat, 15 Mar 2014 22:49:57 -0700 (PDT) Received: from opensuse.site (ppp37-190-15-130.pppoe.spdop.ru. [37.190.15.130]) by mx.google.com with ESMTPSA id bm3sm10198601lbb.12.2014.03.15.22.49.56 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 15 Mar 2014 22:49:56 -0700 (PDT) Date: Sun, 16 Mar 2014 09:49:55 +0400 From: Andrey Borzenkov To: The development of GNU GRUB Subject: Re: How one is supposed to write kind-of-library cfg files? Message-ID: <20140316094955.05162a53@opensuse.site> In-Reply-To: <532526C0.2090808@gmail.com> References: <53251F44.3000505@gmail.com> <532526C0.2090808@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::232 Cc: adrian15sgd@gmail.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 05:50:15 -0000 =D0=92 Sun, 16 Mar 2014 05:21:20 +0100 adrian15 =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > El 16/03/14 04:49, adrian15 escribi=C3=B3: > > ( Using 2.02~beta2-7 from Debian Unstable ) > > > > I have tried to write some cfg files to kind of organise them as > > libraries but it does not work as expected. > > > > It seems as the sourced cfg files are being interpreted. >=20 > I have managed to write a minimal working example. It would seem that=20 > the problem is having a function inside another function. >=20 >=20 > Is it perhaps not officially supported? >=20 Correct, in grub grammar functions cannot be nested.