From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Variable assignment not working as expected
Date: Sat, 09 Jun 2007 17:31:22 +0200 [thread overview]
Message-ID: <87hcph2lh1.fsf@xs4all.nl> (raw)
In-Reply-To: <8c0c43de0706090001p58ec6fb4nf5d6ed14da6dd4a1@mail.gmail.com> (Alex Roman's message of "Sat, 9 Jun 2007 03:01:12 -0400")
"Alex Roman" <alex.roman@gmail.com> writes:
> On 09/06/07, Bean <bean123@126.com> 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
next prev parent reply other threads:[~2007-06-09 15:25 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-08 4:02 Alternative booting method for grub2 Bean
2007-06-09 5:37 ` Variable assignment not working as expected Bean
2007-06-09 7:01 ` Alex Roman
2007-06-09 7:24 ` Alex Roman
2007-06-09 8:44 ` Alex Roman
2007-06-09 15:08 ` Alex Roman
2007-06-09 10:54 ` Bean
2007-06-09 15:31 ` Marco Gerards [this message]
2007-06-09 16:35 ` Alex Roman
2007-06-09 16:56 ` Marco Gerards
2007-06-09 15:29 ` Marco Gerards
2007-09-09 11:27 ` Alternative booting method for grub2 Robert Millan
2011-07-19 10:41 ` 김민준
2011-07-19 11:08 ` 김민준
2011-07-20 0:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
[not found] ` <22991850.525.1311095881463.JavaMail.mobile-sync@vbbfs23>
2011-07-19 17:32 ` Jérôme Poulin
2011-07-19 23:36 ` 김민준
2011-07-20 0:45 ` Cui Lei
2011-07-20 1:39 ` 김민준
2011-07-20 2:39 ` Cui Lei
2011-07-20 9:43 ` 김민준
2011-07-20 14:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-21 1:01 ` Cui Lei
2011-07-22 1:36 ` 김민준
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hcph2lh1.fsf@xs4all.nl \
--to=mgerards@xs4all.nl \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.