Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Building a new ZSH module outside the ZSH source tree
- X-seq: zsh-workers 41147
- From: tetsujin@xxxxxxxxxxxxx
- To: zsh-workers@xxxxxxx
- Subject: Building a new ZSH module outside the ZSH source tree
- Date: Wed, 24 May 2017 14:57:32 -0400
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=scope-eye.net; h= message-id:from:to:subject:date:content-type:mime-version; s= scope-eye.net; bh=/Y8ISjCLiEQ+0h38uVnhGsSB6Nw=; b=1SH7YeXZpctkvU aNv0CqzKVLeCxBWJaqVee4THj0EMagOdMwK+VXa5CYLY3EkPrbsr9/oZN0JVA7fh e6fIxUWsp1XmGbzgbWiUhvf5NlIQykTkjkcew6Kgf1EAx5bmTcDYpizIhFcSn53s MawL1eQSK3UKXLdCCDJBYkrvzJ4CY=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi there, I'm working on a library called "Shell-Pepper" - the idea is
to provide some added functionality to multiple different shells via
loadable modules (when it's necessary or at least beneficial to do so)
and shell scripts...
Anyway, so far the library has just a few commands (some of which are
already provided as part of zsh - I think it's pretty cool that zsh
already provides a module for connecting to Unix Domain Sockets) - and
so far, only for Bash and Korn Shell. It seems like zsh has a fairly
nice programming interface for modules, but I'm not really clear on
the process for building a module without tying it into the zsh build
system.
In particular, the only examples of zsh modules I have are part of the
zsh distribution, in Src/Modules. Each one includes C source and a
module description file (.mdd) - and sometime during the build,
Src/Modules/Makefile and Makefile.in are generated, and the contents
of these (particularly the generation of module.mdh and module.epro)
are a bit arcane. I can copy the example module and create another zsh
module in zsh/Src/Modules, and build it. But because shell-pepper is
aiming to support multiple shells, a lot of its functionality is
factored out into a "common" build directory. I'm not sure it quite
fits into this build model, and I'd rather stick to the model I've got
anyway - feed the location of the build trees for the different shells
into my build system and build from my project tree.
So I don't really know if there's been much call in the past for
building ZSH modules outside the ZSH source tree, I don't know if
there's a good solution for this at this point. But if somebody on the
list could help me out with this, I'd appreciate it.
---GEC
Messages sorted by:
Reverse Date,
Date,
Thread,
Author