[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: general loadable integration

From: Chet Ramey
Subject: Re: general loadable integration
Date: Thu, 16 Jul 2015 14:53:35 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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
>> 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
> exactly trivial to package.  it feels kind of bolted on, especially when 
> try to build & install things.  if we want the loadables to be more of a 
> 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.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]