Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
print_exit_value unset in an scheduled function, yet still active
- X-seq: zsh-workers 44777
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: print_exit_value unset in an scheduled function, yet still active
- Date: Thu, 26 Sep 2019 21:21:02 +0200
- 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=yPbWfGUYyQuu/jGcNckHlEeyncePCn8zhlqbX2gRWuE=; b=ED6aqP0E6xnP2qkSV0n1PqQn7pidrOhDBt0Cg70DCWUkty0YVdnADp9Z8xHVnpFGzB vo+RtIcETN2NkMGqbPfPah/FixPOAbaFKzIWhJ26Sj/pjHRxd2DiwuweO4U9fWKF5LEX d2jLlPvqcDKoUfAerBjfc4cGAuQof7K0bnjbf6XA+Hq8a5Mg/CDUWMzz5g+17Pe8TXuK 8MBni1icKq+vY5qCyegX+3f/HUObYjEyLG4zl8+8M2dw06LyFiHypdMLNh8Gwdk1tXiJ ODlcWLUeo+dkw8MXOP+fQXMSdXjw7Nu2K70HImsxrLFco6ngzj7qpSpZiET/fRCZGG3+ eyIA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
func() { print $options[printexitvalue] $options[shglob]; false }
setopt printexitvalue; sched +0 func
Output:
off off
zsh: exit 1
setopt shglob; sched +0 func
Output:
off on
zsh: exit 1
So the printexitvalue is unset inside the scheduled function, yet it's
still being active (outside?).
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author