grub-devel
[Top][All Lists]
Advanced

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

Re: Scripting (IMPORTANT!)


From: Yoshinori K. Okuji
Subject: Re: Scripting (IMPORTANT!)
Date: Sat, 14 Oct 2006 17:29:26 +0200
User-agent: KMail/1.8.2

On Friday 13 October 2006 23:03, Marco Gerards wrote:
> It's good you mention this, because it's exactly the discussion I want
> to start.  The question here is: How do we want to deal with the
> `for'?
>
> In bash it iterates over all arguments.  The wildcards are expanded by
> the shell and thus it just has a look at its arguments.  The question
> here is, do we want to deal with wildcards?  It makes the code more
> complex and I think there is little gain.
>
> For GRUB I think some kind of iterators are more useful.  In that case
> you can write a module to iterate over certain data.  For example over
> files, disks, partitions, terminals or whatever.  It leaves the bash
> syntax, but it is more useful in our case and modular.

If you make this feature only for "for", the behavior would be not intuitive 
for the user. For instance, if "echo" does not interpret wildcards, we would 
hear the same question, "Why doesn't this work?", again and again. Also, It 
sounds really ugly to interpret wildcards in each command.

Okuji




reply via email to

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