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

[PATCH] Fix sourcing "test-lib.sh" using dash shell in "t3003-ls-files-narrow-match.sh"

From
Christian Couder <chriscool@tuxfamily.org>
Date
Jan 5, 2009, 13:30 UTC
Message-ID
<20090105143002.8a369535.chriscool@tuxfamily.org>

dash barfs, on my old Ubuntu box, when "test-lib.sh" is sourced without "./".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 t/t3003-ls-files-narrow-match.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
	This patch applies to "pu".
diff --git a/t/t3003-ls-files-narrow-match.sh b/t/t3003-ls-files-narrow-match.sh
index 9879525..b576bca 100755
--- a/t/t3003-ls-files-narrow-match.sh
+++ b/t/t3003-ls-files-narrow-match.sh
@@ -2,7 +2,7 @@
 
 test_description='This test is for narrow spec matching'
 
-. test-lib.sh
+. ./test-lib.sh
 
 D="$(cd ..;pwd)"/t3003
 
-- 
1.6.1.143.gfd590.dirty
Next: Junio C Hamano
Message 1 of 3 in “Fix sourcing "test-lib.sh" using dash shell in "t3003-ls-files-narrow-match.sh"”
  1. Fix sourcing "test-lib.sh" using dash shell in "t3003-ls-files-narrow-match.sh"Christian Couder, Jan 5, 2009
  2. Junio C HamanoJan 6, 2009
  3. Christian CouderJan 7, 2009

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.