[Top][All Lists]

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

Re: Scripting (IMPORTANT!)

From: Marco Gerards
Subject: Re: Scripting (IMPORTANT!)
Date: Sat, 14 Oct 2006 17:43:50 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

"Yoshinori K. Okuji" <address@hidden> writes:

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

Ok, that sounds sane.  But it does not address my problem.  How would
one iterate over disks and partitions.  And perhaps other things like
loaded modules, etc.  Personally I do not care a lot about syntax, but
I want the language to be full features so most end users can do what
they want.


reply via email to

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