Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-3.1 development: dynamic modules
- X-seq: zsh-workers 2333
- From: Peter Stephenson <pws@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: zsh-3.1 development: dynamic modules
- Date: Fri, 08 Nov 1996 09:51:52 +0100
- In-reply-to: "Zoltan Hidvegi"'s message of "Wed, 06 Nov 1996 22:38:05 MET." <199611062138.WAA21625@xxxxxxxxxxxxxxxxx>
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 <pws@xxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author