From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S6kEu-00038V-Pw for mharc-grub-devel@gnu.org; Sun, 11 Mar 2012 10:59:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6kEr-00038I-O8 for grub-devel@gnu.org; Sun, 11 Mar 2012 10:59:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6kEp-0004mO-T3 for grub-devel@gnu.org; Sun, 11 Mar 2012 10:59:13 -0400 Received: from wp191.webpack.hosteurope.de ([80.237.132.198]:56587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6kEp-0004lu-LK for grub-devel@gnu.org; Sun, 11 Mar 2012 10:59:11 -0400 Received: from p4fc26be9.dip.t-dialin.net ([79.194.107.233] helo=neptun.omega.ssw.de); authenticated by wp191.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1S6kEn-0007Gt-CK; Sun, 11 Mar 2012 15:59:09 +0100 Received: from localhost (localhost [127.0.0.1]) by neptun.omega.ssw.de (Postfix) with ESMTP id 80E86E180A8 for ; Sun, 11 Mar 2012 15:59:08 +0100 (CET) X-Virus-Scanned: amavisd-new at omega.ssw.de Received: from neptun.omega.ssw.de ([127.0.0.1]) by localhost (neptun.omega.ssw.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PlpQEmgjkHDS for ; Sun, 11 Mar 2012 15:58:57 +0100 (CET) Received: from [192.168.2.43] (p640.fritz.box [192.168.2.43]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by neptun.omega.ssw.de (Postfix) with ESMTP id B2C0EE180A7 for ; Sun, 11 Mar 2012 15:58:56 +0100 (CET) Message-ID: <4F5CBDB0.60903@anvo-it.de> Date: Sun, 11 Mar 2012 15:58:56 +0100 From: Andreas Vogel User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Grub version variable in shell References: <4F5C10A0.1060802@googlemail.com> <4F5C1321.1050403@gmail.com> <4F5C920D.7070808@googlemail.com> <4F5C9ECF.5010707@gmail.com> <4F5CAEBE.3060905@googlemail.com> <4F5CB18D.9070506@gmail.com> <4F5CB3F3.1000806@googlemail.com> <4F5CB4C1.4070400@gmail.com> In-Reply-To: <4F5CB4C1.4070400@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-bounce-key: webpack.hosteurope.de; andreas.vogel@anvo-it.de; 1331477951; 7023d54e; X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.237.132.198 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, 11 Mar 2012 14:59:15 -0000 Am 11.03.2012 15:20, schrieb Vladimir '=CF=86-coder/phcoder' Serbinenko: > On 11.03.2012 15:17, Andreas Born wrote: >> Yes, that would be fine with me too. I thought about that too, but >> actually I didn't quite see the difference between this and >> grub_version or grub_version_min. >> Maybe there could be: >> - feature_200_release: or whatever the version is if somebody >> really only wants to test/support that one version >> - feature_20x_release: or whatever appropriate for a series of >> releases where it's possible to be backwards compatible >> > feature_*_release wouldn't be removed for the next release. The feature_* variables are great. Anyway I support Andreas suggestion having a GRUB version variable (like many other interpreters/shells are using it, e.g. BASH, Perl, TCL). BASH is using 2 variables for it: BASH_VERSION and BASH_VERSINFO. The second one provides an easy way to get the version, sub-version, etc. (and eliminates the problems with parsing Andreas was mentioning before). GRUB could provide something similar, but that's just a thought which came up right now.