[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable assignment not working as expected
From: |
Marco Gerards |
Subject: |
Re: Variable assignment not working as expected |
Date: |
Sat, 09 Jun 2007 17:31:22 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
"Alex Roman" <address@hidden> writes:
> On 09/06/07, Bean <address@hidden> 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
Re: Variable assignment not working as expected, Marco Gerards, 2007/06/09