All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Include
Date: Sat, 29 Apr 2006 15:02:09 +0200	[thread overview]
Message-ID: <87y7xoa626.fsf@xs4all.nl> (raw)
In-Reply-To: <200604291442.29130.okuji@enbug.org> (Yoshinori K. Okuji's message of "Sat, 29 Apr 2006 14:42:28 +0200")

"Yoshinori K. Okuji" <okuji@enbug.org> writes:

> So I'd like to make variables more similar to BASH's semantics; by default, 
> all variables should be local, and become global only when the user executes 
> "export". Then, a reference of a variable means that GRUB first search the 
> variable in the current context, then in the global context. This looks 
> cleaner than the current implementation.

Well, I can do that.  It will force some changes to be made in the
kernel (kern/env.c).

I will implement it as follows:

- configfile will execute a script and create a new
  context.
- source/. will execute a script in the current context.

I wonder if we want to have local variables for functions.  With
`local' you can create these in bash.  It will be possible to have
this in GRUB, but will make the implementation bigger and add some
exceptions.

--
Marco




      reply	other threads:[~2006-04-29 13:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-29 11:42 Include Marco Gerards
2006-04-29 12:04 ` Include Yoshinori K. Okuji
2006-04-29 12:34   ` Include Marco Gerards
2006-04-29 12:42   ` Include Yoshinori K. Okuji
2006-04-29 13:02     ` Marco Gerards [this message]

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=87y7xoa626.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.