zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: zefram@dcs.warwick.ac.uk (Zefram)
Cc: zsh-workers@math.gatech.edu
Subject: Re: autoloading modules
Date: Sun, 24 Nov 1996 23:40:38 +0100 (MET)	[thread overview]
Message-ID: <199611242240.XAA02931@hzoli.ppp.cs.elte.hu> (raw)
In-Reply-To: <19781.199611241529@stone.dcs.warwick.ac.uk> from Zefram at "Nov 24, 96 03:29:38 pm"

> In order to support autoloading of modules that provide multiple builtins,
> it would be helped by an option to zmodload that says "load this module,
> but keep quiet if it's already loaded".  The patch below adds such an
> option, -i (for idempotent).  To make use of it in zmodautoload, change
> "zmodload" to "zmodload -i" above.

Would not -q (quiet) be a better name for this option?  And the same can be
achieved by redirection stderr.

> Zoltan, what is "zmodload -f" for?

Well it is quite useless, it'll probably be removed.  Originally I added
this to test dlopen on Linux.  The manual claims that if the same library
is loaded twice the same handle is returned which is not true (at least
libdl.so.1.8.2 does not behave this way).

I think that modules should be identified by their name with the extension
and pathname stripped and zsh should not allow loading two modules with the
same name (even if they have different path name).

I also like your other patch to compile in modules but this sed hack is
quite unelegant.  There must be a way to avoid that.

Zoltan


  reply	other threads:[~1996-11-25  1:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-24 15:29 Zefram
1996-11-24 22:40 ` Zoltan Hidvegi [this message]
1996-11-25 13:02   ` Zefram

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=199611242240.XAA02931@hzoli.ppp.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=zefram@dcs.warwick.ac.uk \
    --cc=zsh-workers@math.gatech.edu \
    /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).