<div dir="ltr"><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div>I am trying to extract certain functionalities in ZSH Code base to my own module. </div><div><br></div><div>I have forked repo of <span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Menlo;font-size:11px">zsh 5.0.7 . I want to do command parsing for some custom arguments . </span></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Menlo;font-size:11px"><br></span></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;font-variant-ligatures:no-common-ligatures">When I try to load my module before command parsing my package build fails. </span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;font-variant-ligatures:no-common-ligatures"><br></span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;font-variant-ligatures:no-common-ligatures"><br></span></font></div><div><div style="color:rgb(0,0,0);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div> init_rift_args();</div><div>    createoptiontable();</div><div>    emulate(zsh_name, <span style="color:rgb(9,136,90)">1</span>, &emulation, opts);   <span style="color:rgb(0,128,0)">/* initialises most options */</span></div><div>    opts[LOGINSHELL] = (**argv == <span style="color:rgb(163,21,21)">'-'</span>);</div><div>    opts[PRIVILEGED] = (getuid() != geteuid() || getgid() != getegid());</div><div>    opts[USEZLE] = <span style="color:rgb(9,136,90)">1</span>;   <span style="color:rgb(0,128,0)">/* may be unset in init_io() */</span></div><br><div>    init_bltinmods();</div><div>    </div><div>    <span style="color:rgb(0,128,0)">/* sets INTERACTIVE, SHINSTDIN and SINGLECOMMAND */</span></div><div>    parseargs(argv, &runscript);</div><br><div>    <span style="color:rgb(0,128,0)">// if we're connecting via NETCONF, ensure we have the username/password</span></div><div>    fflush(stdout);</div><div><br></div><br><div>    SHTTY = -<span style="color:rgb(9,136,90)">1</span>;</div><div>    init_io();</div><div>    setupvals();</div><br><div>    init_signals();</div><div>    init_bltinmods();</div><div>    init_builtins();</div><div>    <span style="color:rgb(0,128,0)">run_init_scripts(); </span></div><div>    setupshin(runscript);</div><div>    init_misc();</div><div><br></div><div>From the above code snippet , I need some way to init_bltinmods before parse_args.</div></div></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Menlo;font-size:11px"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Menlo;font-size:11px"><br></span></div>







<div dir="ltr"><br></div><div dir="ltr">Regards<div>Marshel Abraham </div><div>Contact - 9731936968</div></div></div></div></div>
</div>