[Top][All Lists]

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

Re: New command eval.

From: Seth Goldberg
Subject: Re: New command eval.
Date: Sun, 12 May 2013 22:13:17 -0700

On May 11, 2013, at 10:39 PM, Andrey Borzenkov wrote:

> В Sat, 11 May 2013 17:07:19 -0700
> Seth Goldberg <address@hidden> пишет:
>> Hi,
>>  What about the feature environment variable to allow dynamic detection of 
>> this enhancement?
> That really does not scale. Commands come and go. What about single
> command "has" (or probably better "implements") as in

  That's what we've had thus far, which is why I'm referring to it.  Existing 
script that has to run regardless of the version of GRUB will continue to need 
to refer to the existing feature vars.  Going forward, I'm OK with your scheme.


> implements --command eval|testspeed|...
> implements --crypto_algorithm sha256|...
> implements --network_protocol http|tftp|ipv6|...
> Command "implements" itself may be instantiated under
> fetature_201_final (or whatever next version is).
> It probably could even be extended to feature test of single commands,
> like
> implements --command menuentry --feature id
> Note that in this specific case (eval) this probably is not useful at
> all. If you want to test whether this command is present, you
> presumably are going to write alternative implementation without eval.
> In this case why bother to test in the first place?
> _______________________________________________
> Grub-devel mailing list
> address@hidden

reply via email to

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