Peter Samuelson wrote:
> 
> [Kai Germaschewski]
> > Honestly, I do not like this. It's probably the best that can be
> > done in shell, but I think it's ugly and not intuitive.
> [...]
> The shell-syntax if [ ] might seem intuitive at first glance, if you
> already know the Bourne shell, but that leads you into the trap that
> you can use *any* Bourne shell syntax there, which of course you
> can't.  For example, someone might try the following:
> 
>   if [ "$CONFIG_FOO" = "y" ] || [ "$CONFIG_BAR" = "y" ]; then
> 

This has already happened.

http://linus.bkbits.net:[EMAIL PROTECTED]?nav=index.html|src/.|src/arch|src/arch/ia64|related/arch/ia64/config.in

> By using *exactly* the same syntax for dep_* and if_dep, I hope to
> *reduce* the confusion of exactly what functionality is or is not
> available.  Currently we have a *completely arbitrary* subset of
> Bourne shell and /bin/test, which is Not Good.

Agreed.

> > I realize this limitation is largely caused by using shell as the
> > interpreter, but in this case I'd prefer to drop using shell, I
> > think we all agree that a using common parser later would be a good
> > thing anyway, and that really does not need to be written in shell.
> 
> If we can get mconfig or similar into the standard kernel and displace
> Configure and Menuconfig, we'll certainly have a lot more options.  I
> agree that it would be nice to drop the requirement for shell parsing.
> I just don't know if it's a realistic goal, especially before 2.6.

I think that a change to a new parser is something we would want to do
quite early in a development series for much the same reasons that the
CML2 switch was supposed to happen early in 2.5, i.e. maximise the time
to work the bugs out.

Greg.
-- 
the price of civilisation today is a courageous willingness to prevail,
with force, if necessary, against whatever vicious and uncomprehending
enemies try to strike it down.     - Roger Sandall, The Age, 28Sep2001.


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to