From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hx2oT-00011V-H9 for mharc-grub-devel@gnu.org; Sat, 09 Jun 2007 11:25:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hx2oR-0000xz-MD for grub-devel@gnu.org; Sat, 09 Jun 2007 11:25:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hx2oQ-0000tS-1Y for grub-devel@gnu.org; Sat, 09 Jun 2007 11:25:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hx2oP-0000t9-Tl for grub-devel@gnu.org; Sat, 09 Jun 2007 11:25:09 -0400 Received: from smtp-vbr5.xs4all.nl ([194.109.24.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hx2oP-0001Mi-Rt for grub-devel@gnu.org; Sat, 09 Jun 2007 11:25:10 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id l59FP8Ye038508 for ; Sat, 9 Jun 2007 17:25:08 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20070608040212.GA2257@ws3.vdp.com> <20070609053747.GA9868@ws3.vdp.com> <8c0c43de0706090001p58ec6fb4nf5d6ed14da6dd4a1@mail.gmail.com> Mail-Copies-To: mgerards@xs4all.nl Date: Sat, 09 Jun 2007 17:31:22 +0200 In-Reply-To: <8c0c43de0706090001p58ec6fb4nf5d6ed14da6dd4a1@mail.gmail.com> (Alex Roman's message of "Sat, 9 Jun 2007 03:01:12 -0400") Message-ID: <87hcph2lh1.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: FreeBSD 4.6-4.9 Subject: Re: Variable assignment not working as expected 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: Sat, 09 Jun 2007 15:25:12 -0000 "Alex Roman" writes: > On 09/06/07, Bean wrote: >> I try the following command: >> >> set AA=1 >> set BB=$AA > > Taking a quick look at command.c where the "set" command is defined, > it doesn't look like that feature is implemented. Even in grub_env_set > in env.c it isn't implemented. > > I'm willing to implement this feature... Where do you, devs, think > this would be better suited? In the set command, or in the > grub_env_set function? The problem is different. The command line parser should insert this, but currently can't deal with the case where text and variables are concatenated, IIRC. >> then type set, it shows: >> >> AA=1 >> BB= >> >> should the value of BB be 1 ? >> >> BTW, i notice that echo.c exists, but no echo.mod is generated. > > Because echo is such a "core" command it is built right into the kernel AFAIK... No, it's even a normal mode command. -- Marco