From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 16 Nov 2009 14:31:15 -0500 To: 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] exit an rc script on any error; equivalent of bash's set -e Topicbox-Message-UUID: 9c68b3a0-ead5-11e9-9d60-3106f5b1d025 > 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