From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UbP0x-0002Tg-Kh for mharc-grub-devel@gnu.org; Sun, 12 May 2013 01:40:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbP0t-0002RV-QC for grub-devel@gnu.org; Sun, 12 May 2013 01:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbP0s-0005jo-NP for grub-devel@gnu.org; Sun, 12 May 2013 01:40:03 -0400 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:56517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbP0s-0005dj-GR for grub-devel@gnu.org; Sun, 12 May 2013 01:40:02 -0400 Received: by mail-la0-f41.google.com with SMTP id lx15so2726694lab.28 for ; Sat, 11 May 2013 22:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=2/oTh8yM/fRc2DX8A71/rX+93/B1qT4uUjS0/m8xenE=; b=DRfZ30xlRkUZOzEnnk0PvDyV8U6aKnOacAkESemqpQTO3jxATIwrvBOnE8mu9eRvR0 vJowjsV3U9g8fM4gMcZsb1JdhPwYj5WIF22eZmnY+JwxJJu5uyxyCYS85dtPGqAR1FB+ sUEV+S67Sh99ypWQG7Txzj51CpgkDfExIYln7YiIgc5u5nP6PskrHyHKJzV13JSGiOAo DR+e3BO3KJbVJiq/6Fc8FyUijp+IgVRpokD/1rQa86S7pi81BsQhgMhmK+EipmC271ZG 3gh+gclfWIz1CbcO/kNHn0PttMoOp0jVvD2tRH0eviYNjh8FEkebmjlHGM0D0w5Ylxi7 bfLQ== X-Received: by 10.112.3.99 with SMTP id b3mr4905015lbb.52.1368337200879; Sat, 11 May 2013 22:40:00 -0700 (PDT) Received: from opensuse.site ([94.29.72.160]) by mx.google.com with ESMTPSA id w3sm3450574lae.7.2013.05.11.22.39.59 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 11 May 2013 22:40:00 -0700 (PDT) Date: Sun, 12 May 2013 09:39:59 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: New command eval. Message-ID: <20130512093959.675ec380@opensuse.site> In-Reply-To: References: <1367240132.58582.YahooMailNeo@web120204.mail.ne1.yahoo.com> <20130501185934.3f2b9c28@opensuse.site> <518578B3.5040003@gmail.com> <20130511203534.52499628@opensuse.site> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.14; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::229 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 05:40:05 -0000 В Sat, 11 May 2013 17:07:19 -0700 Seth Goldberg пишет: > 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 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?