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.6/8.7.3) with ESMTP id AAA07964 for ; Tue, 26 Nov 1996 00:10:03 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id IAA17390; Mon, 25 Nov 1996 08:02:36 -0500 (EST) Resent-Date: Mon, 25 Nov 1996 08:02:36 -0500 (EST) From: Zefram Message-Id: <7099.199611251302@stone.dcs.warwick.ac.uk> Subject: Re: autoloading modules To: hzoli@cs.elte.hu (Zoltan Hidvegi) Date: Mon, 25 Nov 1996 13:02:03 +0000 (GMT) Cc: zefram@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu In-Reply-To: <199611242240.XAA02931@hzoli.ppp.cs.elte.hu> from "Zoltan Hidvegi" at Nov 24, 96 11:40:38 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8477.71 X-US-Congress: Moronic fuckers Content-Type: text Resent-Message-ID: <"MgE1Z.0.eF4.hZPco"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2469 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >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