From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VrCHn-0007b5-UX for mharc-grub-devel@gnu.org; Thu, 12 Dec 2013 14:51:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrCHd-0007RY-W3 for grub-devel@gnu.org; Thu, 12 Dec 2013 14:51:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrCHV-0004Yp-IU for grub-devel@gnu.org; Thu, 12 Dec 2013 14:50:53 -0500 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:44639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrCHV-0004Yl-Ax for grub-devel@gnu.org; Thu, 12 Dec 2013 14:50:45 -0500 Received: by mail-wi0-f182.google.com with SMTP id en1so90312wid.15 for ; Thu, 12 Dec 2013 11:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=rqejxix9oWTzx5WQkOP1S423BKYM2rfx4DNrS3L9jOA=; b=v3glI5c993nruTFA8EbEaH2SBldxEzVMByICVU3PlYXkiFAoDxxbwoauZggHlveuzb 2aSWfPXhKDHzpZyJhnCRIE49f8d8jhD9kzSor27s6y53K4KRBfWe50+8CKZMfg7PjvJG w/y8pVDerf0yRPHb4j391+4t4pb+habLJy87IZOMY9bRPztLqVOyn2bWNYVEgXQPRFOa WVU9dZUTgoa3zoyJjEnLdjPuy0YkcZMj95RwGG+BJHBIKn5SHA9uCbaST15b66kyoIDd gu1+WU94iZOSs8OeLOqXW63MToqrpvjwxi5HFdyvaRhsplcrG0MJJ2z3MYH/OISjvn8N ehng== X-Received: by 10.180.82.161 with SMTP id j1mr9131746wiy.23.1386877841436; Thu, 12 Dec 2013 11:50:41 -0800 (PST) Received: from [192.168.1.16] (85-188.196-178.cust.bluewin.ch. [178.196.188.85]) by mx.google.com with ESMTPSA id xn17sm89691wib.1.2013.12.12.11.50.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Dec 2013 11:50:39 -0800 (PST) Message-ID: <52AA138F.6030401@gmail.com> Date: Thu, 12 Dec 2013 20:50:39 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [PATCH 2/4] Accept environment variables on the command line for Xen. References: <20131212153643.GA1431@riva.ucam.org> <20131212153722.GC1431@riva.ucam.org> <20131212194805.5d81a2e7@opensuse.site> <20131212211203.6231e256@opensuse.site> <52A9F93F.2000008@gmail.com> <20131212191225.GI1431@riva.ucam.org> In-Reply-To: <20131212191225.GI1431@riva.ucam.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BgrbILiXRGh5hxV4V8595GIxrOTe4up9c" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 Cc: Colin Watson 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: Thu, 12 Dec 2013 19:51:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --BgrbILiXRGh5hxV4V8595GIxrOTe4up9c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12.12.2013 20:12, Colin Watson wrote: > On Thu, Dec 12, 2013 at 06:58:23PM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: >> My response was terse and it seems that you misunderstood it, sorry. I= >> meant more along the lines that define: >> cmdline.# as number of arguments >> cmdline.1,..., cmdline.N are the raw arguments >> cmdline.var. are parsed variants of =3D >=20 > That seems unnecessarily cumbersome. I can see why you'd want them to > be specifically identified, but why require the count rather than just > taking as many cmdline.foo arguments as are present? I don't really se= e > what you're trying to achieve here. >=20 > (Also, cmdline.* is odd naming given that the whole thing arrives on a > command line anyway.) >=20 As discussed on IRD what I meant is how command line is exported to GRUB environment. Colin proposed on IRC to use already existing $*, $@ and $# but it poses other problems with shadowing in source, configfile, menuentry and functi= on. @Jordan: your opinion since you do a lot of GRUB scripting? --BgrbILiXRGh5hxV4V8595GIxrOTe4up9c Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlKqE48ACgkQmBXlbbo5nOuM4QD/VGobC+PSPOR7W74bzRKSwlxh 6S5Kx4kQd3Dpfw0GrsAA+QH2xjUFHf7J8k0U+kIQekbKtKP1+0c231KtFBpq/Sii =o67R -----END PGP SIGNATURE----- --BgrbILiXRGh5hxV4V8595GIxrOTe4up9c--