Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: I hate it when you break my static link
- X-seq: zsh-workers 15275
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxx>
- Subject: RE: I hate it when you break my static link
- Date: Fri, 6 Jul 2001 12:54:33 +0400
- Importance: Normal
- In-reply-to: <1010706084117.ZM11494@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
> } I guess it should be changed to conditionally enable building only if
> } prerequisites (pcre) is found. I do not see any point in having load of
> } dummy modules all of them defining aliases for bin_notavail.
>
> The problem is that failure to (auto)load a module is an abortive error
> (i.e. kills entire scripts/functions), whereas bin_notavail is a simple
> command failure. This makes it difficult to decide whether to omit a
> module entirely or give it a clean failure mode.
>
Module that can be not available should never be autoloaded. Then it is
quite easy
zmodload -e foo || zmodload -q foo || exit 1
while you cannot distinguish failed command from not-available.
> Being halfway in between is the problem.
>
Agreed. If module is not built all auto* in mdd should be ignored.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author