From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] exit an rc script on any error; equivalent of bash's set -e
Date: Mon, 16 Nov 2009 20:25:37 +0100 [thread overview]
Message-ID: <a560a5d00911161125h2e8d64cex1db8a9619115c98f@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 260 bytes --]
Hello,
is there anything similar to the bash's
set -e
(that causes a script to terminate whenever any command in the script
returns a failure)
in rc?
Or do I have to always write sth like
command1 || exit
command2 || exit
...
?
Thank you
Ruda
[-- Attachment #2: Type: text/html, Size: 295 bytes --]
next reply other threads:[~2009-11-16 19:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 19:25 Rudolf Sykora [this message]
2009-11-16 19:31 ` erik quanstrom
2009-11-16 19:33 ` Rudolf Sykora
2009-11-16 19:31 ` Rudolf Sykora
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=a560a5d00911161125h2e8d64cex1db8a9619115c98f@mail.gmail.com \
--to=rudolf.sykora@gmail.com \
--cc=9fans@9fans.net \
/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.
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).