From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-workers@zsh.org
Subject: PRINT_EXIT_VALUE option in scripts
Date: Tue, 14 May 2013 16:15:45 +0200 [thread overview]
Message-ID: <20130514141545.GB3544@ypig.lip.ens-lyon.fr> (raw)
The PRINT_EXIT_VALUE option doesn't work in scripts or when a file
is sourced:
----------------------------------------
#!/usr/bin/env zsh
echo $ZSH_VERSION
setopt PRINT_EXIT_VALUE
/bin/false
echo OK
----------------------------------------
ypig% ./tst
5.0.2
OK
ypig% source ./tst
5.0.2
OK
This was already the case with zsh 4.3.10.
Is this intentional? The man page just says:
PRINT_EXIT_VALUE (-1)
Print the exit value of programs with non-zero exit status.
Either the behavior or the documentation should be fixed.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
next reply other threads:[~2013-05-14 14:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 14:15 Vincent Lefevre [this message]
2013-05-14 18:46 ` Peter Stephenson
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=20130514141545.GB3544@ypig.lip.ens-lyon.fr \
--to=vincent@vinc17.net \
--cc=zsh-workers@zsh.org \
/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).