From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id UAA22619 for ; Fri, 8 Nov 1996 20:00:22 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id DAA24609; Fri, 8 Nov 1996 03:51:42 -0500 (EST) Resent-Date: Fri, 8 Nov 1996 03:51:42 -0500 (EST) Message-Id: <199611080851.JAA17541@hydra.ifh.de> X-Authentication-Warning: hydra.ifh.de: Host pws@localhost didn't use HELO protocol To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: zsh-3.1 development: dynamic modules In-reply-to: "Zoltan Hidvegi"'s message of "Wed, 06 Nov 1996 22:38:05 MET." <199611062138.WAA21625@bolyai.cs.elte.hu> Date: Fri, 08 Nov 1996 09:51:52 +0100 From: Peter Stephenson Resent-Message-ID: <"2dD2e1.0.R06.TIlWo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2333 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zoltan Hidvegi wrote: > This is very experimental. You have to give the --enable-dynamic option to > configure to compile in binary module support. This adds a new builtin, > modload. Whithout arguments it lists the currently loaded modules. > Otherwise it loads the given module. The $module_path array is user to > seatch for the modules. modload -u modue unloads the given module. I just remembered... modload is an existing command on solaris to load kernel modules. It's not something the average user is going to be doing, but I suggest it's probably better to start on the right foot and avoid a clash and associated confusion (suppose the user looks for a manual page on modload). How about zmodload? That's more explicit about it being a zsh module. *** Src/hashtable.h.old Fri Nov 8 09:38:02 1996 --- Src/hashtable.h Fri Nov 8 09:38:41 1996 *************** *** 304,310 **** #endif #ifdef DYNAMIC ! {NULL, "modload", 0, bin_modload, 0, -1, 0, "uf", NULL}, #endif {NULL, "popd", 0, bin_cd, 0, 2, BIN_POPD, NULL, NULL}, {NULL, "print", BINF_PRINTOPTS, bin_print, 0, -1, BIN_PRINT, "RDPnrslzNu0123456789pioOcm-", NULL}, --- 304,310 ---- #endif #ifdef DYNAMIC ! {NULL, "zmodload", 0, bin_zmodload, 0, -1, 0, "uf", NULL}, #endif {NULL, "popd", 0, bin_cd, 0, 2, BIN_POPD, NULL, NULL}, {NULL, "print", BINF_PRINTOPTS, bin_print, 0, -1, BIN_PRINT, "RDPnrslzNu0123456789pioOcm-", NULL}, *** Src/module.c.old Fri Nov 8 09:38:03 1996 --- Src/module.c Fri Nov 8 09:38:26 1996 *************** *** 127,133 **** /**/ int ! bin_modload(char *nam, char **args, char *ops, int func) { LinkNode node; Module m = NULL; --- 127,133 ---- /**/ int ! bin_zmodload(char *nam, char **args, char *ops, int func) { LinkNode node; Module m = NULL; -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.