From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12688 invoked by alias); 7 Jun 2017 10:20:32 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41246 Received: (qmail 22231 invoked from network); 7 Jun 2017 10:20:31 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(0.0/5.0):. Processed in 2.912795 secs); 07 Jun 2017 10:20:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (7) Date: Wed, 7 Jun 2017 12:20:19 +0200 From: Sebastian Gniazdowski To: zsh-workers@zsh.org Message-ID: Subject: Return value from execstring(), or construct Options for a builtin? X-Mailer: Airmail (231) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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