On 09/06/07, Marco Gerards <[EMAIL PROTECTED]> wrote:
"Alex Roman" <[EMAIL PROTECTED]> writes:
> On 09/06/07, Bean <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel