From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WnNTt-0002PV-Bb for mharc-grub-devel@gnu.org; Thu, 22 May 2014 03:32:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnNTe-0002L6-SY for grub-devel@gnu.org; Thu, 22 May 2014 03:31:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnNTR-0000t2-NC for grub-devel@gnu.org; Thu, 22 May 2014 03:31:46 -0400 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:44542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnNTR-0000s5-Dd for grub-devel@gnu.org; Thu, 22 May 2014 03:31:33 -0400 Received: by mail-ee0-f44.google.com with SMTP id c41so2265915eek.31 for ; Thu, 22 May 2014 00:31:32 -0700 (PDT) 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:subject:references :in-reply-to:content-type; bh=Bu8I1RgM3+kKk0QPX2YjofYsF9flW9EZddyccSTF6yY=; b=jBZD24JA8bGq7N2CflYvw9mUP8OgDQtZzWIf+xpK7N5qdoaHIPnpVA8R959XxJ/oJ/ 5dxfQm2kdiDBpQGlZTwKe6Ojgn/V581AD4EpXrYrAE/Qky0wxsAM3WkHW92XQAZERYH4 H9lAyPsfQgFgpET23dfKGuri/7ocM3S5Y4T9dJPwekgySuOlJn7UgHTevXK13G/uJO/O y137sAhSIQNs+H4kpfpjZgY0h8fZgQU2gWN1eh/ImYHLVJ+ZZAKjWuQpcovEzPompGZj PIB5d8jQQn5/HiYulD7rKhsNI0FikEtf2bQ65Ou2tSaS30h9eR6pM43UZUICZCqhGq+p Pzog== X-Received: by 10.15.76.67 with SMTP id m43mr11087400eey.65.1400743892252; Thu, 22 May 2014 00:31:32 -0700 (PDT) Received: from ?IPv6:2620:0:105f:fd00:224:d7ff:fe9b:a0? ([2620:0:105f:fd00:224:d7ff:fe9b:a0]) by mx.google.com with ESMTPSA id n1sm17660812eey.12.2014.05.22.00.31.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 00:31:31 -0700 (PDT) Message-ID: <537DA7CC.8000507@gmail.com> Date: Thu, 22 May 2014 09:31:24 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [PATCH] Allow user-defined functions to override builtins. References: <20140519013715.1e36d215@crass-Ideapad-Z570> In-Reply-To: <20140519013715.1e36d215@crass-Ideapad-Z570> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3cpWNFms9wXKj71eEtMpR4oAAhJ7uSwuX" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22c 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, 22 May 2014 07:31:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3cpWNFms9wXKj71eEtMpR4oAAhJ7uSwuX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 19.05.2014 08:37, Glenn Washburn wrote: > Currently, builtin commands take precedence over user-defined > functions. This patch reverses that precedence, so that users can > "override" builtin commands. Builtin commands may be accessed by > issuing the command prefixed by an '@' character. >=20 Overriding builtins sounds like a bad idea. For once it creates a language which is heavily dependent on context. This gets hairy and messy very fast. > My motivation for this change is to hook insmod in loaded configfiles > which set $prefix to a different location than desired. If there are > any changes needed to help get this functionality included, please let > me know. >=20 Could you detail your usercase more? $prefix is the location where modules are, why not just set it to right location? --3cpWNFms9wXKj71eEtMpR4oAAhJ7uSwuX 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 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlN9p9EACgkQmBXlbbo5nOt/EgD+IdFAN5zdl4lZ1vD0iVkV1xUs wVb9JGrowYDcDDQLrgcA/2VH5QAwEzu+Il0HjAXYyPToEn1x9QgeuwVJ8nmV/UX2 =zp7F -----END PGP SIGNATURE----- --3cpWNFms9wXKj71eEtMpR4oAAhJ7uSwuX--