9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] exit an rc script on any error; equivalent of bash's set -e
@ 2009-11-16 19:25 Rudolf Sykora
  2009-11-16 19:31 ` erik quanstrom
  2009-11-16 19:31 ` Rudolf Sykora
  0 siblings, 2 replies; 4+ messages in thread
From: Rudolf Sykora @ 2009-11-16 19:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-16 19:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16 19:25 [9fans] exit an rc script on any error; equivalent of bash's set -e Rudolf Sykora
2009-11-16 19:31 ` erik quanstrom
2009-11-16 19:33   ` Rudolf Sykora
2009-11-16 19:31 ` Rudolf Sykora

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).