grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable assignment not working as expected


From: Alex Roman
Subject: Re: Variable assignment not working as expected
Date: Sat, 9 Jun 2007 12:35:58 -0400

On 09/06/07, Marco Gerards <address@hidden> wrote:
"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.

Ahh... I see now how it's handled. My bad.

... I wish I knew flex/yacc :(


>> 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.

So, is it built as part of a module which needs to be loaded, or does
it get built into GRUB2 like insmod/rmmod/etc?


--
Alex Roman <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]