* [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
* Re: [9fans] exit an rc script on any error; equivalent of bash's set -e 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 1 sibling, 1 reply; 4+ messages in thread From: erik quanstrom @ 2009-11-16 19:31 UTC (permalink / raw) To: 9fans > 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 > ... > ? > see rc(1) invocation section. see -e. this can be set % flag e - erik ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] exit an rc script on any error; equivalent of bash's set -e 2009-11-16 19:31 ` erik quanstrom @ 2009-11-16 19:33 ` Rudolf Sykora 0 siblings, 0 replies; 4+ messages in thread From: Rudolf Sykora @ 2009-11-16 19:33 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 117 bytes --] > > > see rc(1) invocation section. see -e. this can be set > % flag e > > - erik > > Thanks! Ruda [-- Attachment #2: Type: text/html, Size: 370 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] exit an rc script on any error; equivalent of bash's set -e 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:31 ` Rudolf Sykora 1 sibling, 0 replies; 4+ messages in thread From: Rudolf Sykora @ 2009-11-16 19:31 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 427 bytes --] Ok! rc -e script seems to be the way... I finally found it. Thanks Ruda 2009/11/16 Rudolf Sykora <rudolf.sykora@gmail.com> > 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: 704 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).