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

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

Not quite.  -i only suppresses one type of error, that of loading an
already loaded module.  If loading is attempted and fails, it still
complains, and the zmodautoload-generated function won't unfunction
itself.  A -q option should logically suppress all error reports, but
that could indeed by done by redirecting stderr.

>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).

No.  commands with the same name but different directories are
logically distinct, and modules should be treated the same way.  It
might be useful to allow unloading of a module by base name only, but
we can get a much more powerful effect by adding a -m option (i.e. a
globbing option).

-zefram


      reply	other threads:[~1996-11-25 13:10 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
1996-11-25 13:02   ` Zefram [this message]

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=7099.199611251302@stone.dcs.warwick.ac.uk \
    --to=zefram@dcs.warwick.ac.uk \
    --cc=hzoli@cs.elte.hu \
    --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).