From: Heiko Voigt Date: Thu, 02 Sep 2010 16:29:36 GMT Subject: Re: [PATCH] t7405: cd inside subshell instead of around Message-ID: <20100902162936.GA2535@book.hvoigt.net> In-Reply-To: <4C7EBF3D.9030806@web.de> On Wed, Sep 01, 2010 at 11:01:49PM +0200, Jens Lehmann wrote: > Instead of using `cd dir && (...) && cd..` use `(cd dir && ...)` > > This ensures that the test doesn't get caught in the subdirectory if there > is an error in the subshell. > > Signed-off-by: Jens Lehmann That makes the test way more robust, I like it. cheers Heiko