zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Bart Schaefer" <schaefer@candle.brasslantern.com>,
	<zsh-workers@sunsite.dk>
Subject: RE: I hate it when you break my static link
Date: Fri, 6 Jul 2001 12:54:33 +0400	[thread overview]
Message-ID: <004c01c105f9$46e67af0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <1010706084117.ZM11494@candle.brasslantern.com>

> } 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


      reply	other threads:[~2001-07-06  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-06  6:03 Bart Schaefer
2001-07-06  7:49 ` Andrej Borsenkow
2001-07-06  8:41   ` Bart Schaefer
2001-07-06  8:54     ` Andrej Borsenkow [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='004c01c105f9$46e67af0$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).