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

[PATCH] git-p4: missing she-bang line in t9804 confuses prove

From
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date
Feb 27, 2012, 17:40 UTC
Message-ID
<1330364414-29332-1-git-send-email-zbyszek@in.waw.pl>

Without the magic line, prove shows lots and lots of errors: % prove ./t9804-git-p4-label.sh ./t9804-git-p4-label.sh .. syntax error at ./t9804-git-p4-label.sh line 3, near ". ." ...

When #!/bin/sh is added, tests are skipped (I have no p4d).
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
---
 t/t9804-git-p4-label.sh |    2 ++
 1 file changed, 2 insertions(+)
diff --git a/t/t9804-git-p4-label.sh b/t/t9804-git-p4-label.sh
index 80d01ea..a9e04ef 100755
--- a/t/t9804-git-p4-label.sh
+++ b/t/t9804-git-p4-label.sh
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 test_description='git-p4 p4 label tests'
 
 . ./lib-git-p4.sh
-- 
1.7.9.2.396.ga883d.dirty
Next: Junio C Hamano
Message 1 of 2 in “git-p4: missing she-bang line in t9804 confuses prove”
  1. git-p4: missing she-bang line in t9804 confuses proveZbigniew Jędrzejewski-Szmek, Feb 27, 2012
  2. Junio C HamanoFeb 27, 2012

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.