git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Jens Lehmann
Message 2 of 2 in “t7405: cd inside subshell instead of around”
  1. t7405: cd inside subshell instead of aroundJens Lehmann, Sep 1, 2010
  2. Heiko VoigtSep 2, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.