From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH 1/8] Add core.sh and wrapper function Date: Mon, 13 Apr 2015 11:23:57 +0100 Message-ID: <552B993D.1080700@eu.citrix.com> References: <1428607792-13418-1-git-send-email-george.dunlap@eu.citrix.com> <1428607792-13418-2-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 04/10/2015 03:29 PM, Stefano Stabellini wrote: >> diff --git a/raise b/raise >> new file mode 100755 >> index 0000000..7f3faae >> --- /dev/null >> +++ b/raise >> @@ -0,0 +1,16 @@ >> +#!/usr/bin/env bash > > It is important to "set -e" immediately to catch all possible errors: > > "-e Exit immediately if a command exits with a non-zero status." > > Then you can drop set -e from raise.sh and unraise.sh when you turn them > into libraries. "set -e" gets tricky when you sometimes expect commands to fail; particularly if you may want to do some sort of clean-up. But let's cross that bridge when we come to it. :-) -George