Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Return value from execstring(), or construct Options for a builtin?
- X-seq: zsh-workers 41246
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Return value from execstring(), or construct Options for a builtin?
- Date: Wed, 7 Jun 2017 12:20:19 +0200
- 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
Hello
I'm finishing the unification of db/* modules, to make them use ztie / zuntie. I call backend function via:
backend_cmd = "zrtie"; // (or "zgtie")
execstring(backend_cmd, 1, 0, "ztie");
The problem is execstring() is void return type. Does it store retval somewhere?
I can also call builtin, have builtintab correctly searched, proper HashNode is obtained. But not sure how to fill Options argument. I have no options to pass:
bin_zrtie(char *nam, char **args, Options ops, UNUSED(int func));
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author