Re: [PATCH] t7405: cd inside subshell instead of around
- From
Heiko Voigt <hvoigt@hvoigt.net>
- Date
- Sep 2, 2010, 16:29 UTC
- 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:
Show 6 quoted lines
> 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 <Jens.Lehmann@web.de>
That makes the test way more robust, I like it.
cheers Heiko