From: Brandon Casey Date: Tue, 19 Aug 2008 01:27:14 GMT Subject: Re: [PATCH] test-lib.sh: work around ksh's trap shortcomings Message-ID: In-Reply-To: <7vbpzplw9o.fsf@gitster.siamese.dyndns.org> Junio C Hamano wrote: > Your alias test_done that calls function test_done look ugly and confusing > beyond words. Perhaps test_done() can instead set a global variable and > die() can notice it instead, like this? I haven't bothered to change the > other "trap - exit" but I think you got the idea... Yes that works and is much clearer. Tested on solaris and irix. -brandon