[Pkg-zsh-devel] ZSH Modules

Marshel Abraham marshel.abraham at gmail.com
Mon Sep 25 16:19:23 UTC 2017


Hello,


I am trying to extract certain functionalities in ZSH Code base to my own
module.

I have forked repo of zsh 5.0.7 . I want to do command parsing for some
custom arguments .

When I try to load my module before command parsing my package build fails.


init_rift_args();
createoptiontable();
emulate(zsh_name, 1, &emulation, opts); /* initialises most options */
opts[LOGINSHELL] = (**argv == '-');
opts[PRIVILEGED] = (getuid() != geteuid() || getgid() != getegid());
opts[USEZLE] = 1; /* may be unset in init_io() */

init_bltinmods();
/* sets INTERACTIVE, SHINSTDIN and SINGLECOMMAND */
parseargs(argv, &runscript);

// if we're connecting via NETCONF, ensure we have the username/password
fflush(stdout);


SHTTY = -1;
init_io();
setupvals();

init_signals();
init_bltinmods();
init_builtins();
run_init_scripts();
setupshin(runscript);
init_misc();

>From the above code snippet , I need some way to init_bltinmods before
parse_args.



Regards
Marshel Abraham
Contact - 9731936968
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20170925/70f74a75/attachment.html>


More information about the Pkg-zsh-devel mailing list