Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NF2jf-0006cp-Ng for mharc-grub-devel@gnu.org; Mon, 30 Nov 2009 04:39:59 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NF2je-0006cE-If for grub-devel@gnu.org; Mon, 30 Nov 2009 04:39:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NF2jZ-0006ZH-Ap for grub-devel@gnu.org; Mon, 30 Nov 2009 04:39:57 -0500 Received: from [199.232.76.173] (port=59846 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF2jZ-0006Z3-6Y for grub-devel@gnu.org; Mon, 30 Nov 2009 04:39:53 -0500 Received: from smarthost01.mail.zen.net.uk ([212.23.3.140]:58099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NF2jY-0006tu-LP for grub-devel@gnu.org; Mon, 30 Nov 2009 04:39:52 -0500 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost01.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1NF2jW-0001sD-SU for grub-devel@gnu.org; Mon, 30 Nov 2009 09:39:51 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1NF2jW-0005nV-00; Mon, 30 Nov 2009 09:39:50 +0000 Date: Mon, 30 Nov 2009 09:39:50 +0000 From: Colin Watson To: The development of GNU GRUB Message-ID: <20091130093949.GA6439@riva.ucam.org> References: <20091129183936.GB19323@pina.cat> <20091129184503.GA22104@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091129184503.GA22104@pina.cat> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost01-IP: [82.69.40.219] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: var=foo should be valid? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Mon, 30 Nov 2009 09:39:58 -0000 On Sun, Nov 29, 2009 at 06:45:03PM +0000, Carles Pina i Estany wrote: > On Nov/29/2009, Carles Pina i Estany wrote: > > Right now in Grub2 a user could do: > > name=john > > set name=john > > > > both are valid. > > > > (first one has a bug but very easy to fix, even thought I would maybe > > refactor this code to implement in other way) > > > > Question that arised in IRC: should be support the first one or not? Two > > interfaces for the same thing? > > my opinion: doesn't matter (a lot) > > And because "doesn't matter": we can only accept "set name=john". I would appreciate it if we left it as it is now. It is not intrinsically bad to have both, and GRUB 2 is already deployed in production so it's quite likely that people will in fact be using both syntaxes. (Indeed, the configuration file I'm delivering by default in Ubuntu 9.10 uses both syntaxes! I should probably normalise that but I simply hadn't thought about it as being any kind of problem.) We should not break production installations when there is no reason to do so. (I don't know what the bug you're referring to is; both 'foo=bar' and 'set foo=bar' seem to work OK here. I may be missing some subtle problem, but if I'm missing it then users will too.) > **: someone could think that if we accept without and with set it's > exporting like export name=foo in Bash If they're familiar with bash then they'll assume that both forms are the same. -- Colin Watson [cjwatson@ubuntu.com]