From: Sebastian Gniazdowski <psprint@zdharma.org>
To: zsh-workers@zsh.org
Subject: Return value from execstring(), or construct Options for a builtin?
Date: Wed, 7 Jun 2017 12:20:19 +0200 [thread overview]
Message-ID: <etPan.5937d363.6b8b4567.2787@MacMini.local> (raw)
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
next reply other threads:[~2017-06-07 10:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-07 10:20 Sebastian Gniazdowski [this message]
2017-06-07 16:11 ` Bart Schaefer
2017-06-08 10:04 ` Sebastian Gniazdowski
2017-06-08 23:14 ` Bart Schaefer
2017-06-08 23:31 ` Bart Schaefer
2017-06-09 8:53 ` Sebastian Gniazdowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=etPan.5937d363.6b8b4567.2787@MacMini.local \
--to=psprint@zdharma.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).