Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
err_return in initialization scripts returns from conditionals
- X-seq: zsh-workers 41625
- From: Jan Alexander Steffens <jan.steffens@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: err_return in initialization scripts returns from conditionals
- Date: Wed, 30 Aug 2017 20:36:48 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5qJArfQuSvKQMeRMYrAcFEU5GSUnugrb/Cf7tfA42Mo=; b=eIUFC+utybl2e4Fx6LWmjZktdkdhc283Ym1+3jOGGaQ3dNchBPSOh83c8soZKTGCd8 tyP59v7jms93T7uhRKGRHRxJPQVKMlOv8wAZTC3OgoR+CVlCfXzv1TQptM5bZU0M0yEl W2W0wN1ygRdR6oxv8UwOyccsolp0IgnBbKyf6iizip9DdTIQAIniYIykBe3MArpfQIH/ YcHtqqamON5cjM1N2h+z7EsGCap8EhZ0SGGnecZrXmQPMcqTfguI+oOKzkWze+LWWjmA it+O5DjKh2gXZqMwe+XRt1iveEbFPQZ8Agkh88FUzvY1Ff4w5MBjm+S47Hv1FL5s7v4e OUjg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi list,
Since recently (5.4.2?), there seems to be a bug involving err_return
during initialization.
If I have a .zshrc with the following content:
setopt err_return
true && function {
if false; then :; fi
echo 1
}
echo 2
Then the "if false" causes the function to return and "1" is not printed.
Note that the behavior differs from running this file using "zsh .zshrc",
where both lines are printed, which I expect is the intended behavior.
Greetings,
Jan Steffens
Messages sorted by:
Reverse Date,
Date,
Thread,
Author