Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11222

Re: general loadable integration

Path csiph.com!aioe.org!news.glorb.com!usenet.stanford.edu!not-for-mail
From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: general loadable integration
Date Thu, 16 Jul 2015 14:53:35 -0400
Lines 53
Approved bug-bash@gnu.org
Message-ID <mailman.7013.1437072825.904.bug-bash@gnu.org> (permalink)
References <20150713204638.GA8279@sagulo> <20150714010230.GA721@ma.sdf.org> <20150714054919.GA3374@sagulo> <55A4C4B1.4040501@gmail.com> <CAPSX3sRepVTSjezsDDr1xV6qghmJaK6=Tm_tsEeiCpMYFbqmxw@mail.gmail.com> <20150714091112.GA17337@vapier>
Reply-To chet.ramey@case.edu
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1437072826 22731 208.118.235.17 (16 Jul 2015 18:53:46 GMT)
X-Complaints-To action@cs.stanford.edu
Cc chet.ramey@case.edu
To Pierre Gaston <pierre.gaston@gmail.com>, Charles Daffern <seejay.11@gmail.com>, "bug-bash@gnu.org" <bug-bash@gnu.org>, Mike Frysinger <vapier@gentoo.org>
Envelope-to bug-bash@gnu.org
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
In-Reply-To <20150714091112.GA17337@vapier>
X-Junkmail-Status score=10/50, host=mpv6.cwru.edu
X-Junkmail-Whitelist YES (by domain whitelist at mpv2.tis.cwru.edu)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-Received-From 129.22.105.37
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref aioe.org gnu.bash.bug:11222

Show key headers only | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/14/15 5:11 AM, Mike Frysinger wrote:
> On 14 Jul 2015 11:35, Pierre Gaston wrote:
>> I think adoption would be difficult considering even a useful loadable
>> builtin like "finfo" has not found its way into default installations, b
ut
>> for instance I can imagine bash programmable completion could go another
>> level with an embedded interpreter that lets you access the readline
>> internals.
> 
> finfo is under the "examples" directory, and all of the loadable logic is
n't
> exactly trivial to package.  it feels kind of bolted on, especially when 
you
> try to build & install things.  if we want the loadables to be more of a 
first
> class concept than something people only play around with locally on thei
r own
> systems, this needs polishing.

It's not quite bolted on, but it does assume access to the bash source
tree, since the header files have to be available.  The build tree needs
to be available as well, since the generated headers are required and
the logic to create shared objects comes for free with the bash configure.
The examples directory is just intended to give developers a flavor of
how to write a loadable builtin.

The original rationale is that the loadable builtins can be installed
anywhere, though the example Makefile does not suggest a location, but
that developers are the ones who need a development environment (the bash
source tree).  Linux vendors could build and include loadable builtins
as part of their distributions, for example, since they obviously have
the bash sources.

I suppose the first thing needed to make that work, and maybe the only
thing needed to make that work, is agreement on the name of a search path
environment variable that enable can use to find loadable builtins.

Chet
- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlWn/aYACgkQu1hp8GTqdKtqjwCdHZiNY2kr/LydtmsuM9vGNQML
tZwAn2ZdPAIeoUGix9usjkM6/5Vb6X9y
=cUI6
-----END PGP SIGNATURE-----

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: general loadable integration Chet Ramey <chet.ramey@case.edu> - 2015-07-16 14:53 -0400

csiph-web