From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2869 invoked by alias); 1 May 2010 20:49:53 -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: 27940 Received: (qmail 8333 invoked from network); 1 May 2010 20:49:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, T_FRT_ADULT2 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) MIME-Version: 1.0 In-Reply-To: <1285584468e.-5976807992945925025.-2686280647114173652@dorfelite.net> References: <12854b73c24.-5662614641985446414.-6364714751911043221@dorfelite.net> <1285584468e.-5976807992945925025.-2686280647114173652@dorfelite.net> Date: Sat, 1 May 2010 13:49:48 -0700 Message-ID: Subject: Re: Added builtins per runtime From: Bart Schaefer To: Christoph Kappel Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 On Sat, May 1, 2010 at 1:17 PM, Christoph Kappel wrote: > > I want to add new ones per runtime.I am currently trying to maintain a second list > and call addbuiltin() when I need to add one. I guess I'm not understanding the question, then. Can you give an example of what it means to you to "add new ones per runtime"? What would it mean for example.c to "change" the builtins that it defines? Modules define features, which can be several different kinds of things including builtins. None of a module's features is available until the module is loaded. Once a module is loaded, you can't alter the set of features it provides, though the zmodload command can enable and disable specific features to make them visible or invisible to the shell. So typically a module would define several features and the calling shell script/program would determine which ones it wishes to enable or disable. How does that differ from what you are attempting to accomplish?