Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/5] t0061: Fix incorrect indentation

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:51

Frans Klaver [off-list ref] writes:
The hello.sh script started with <tab>#!, which is not considered a
correct hash-bang line.
Isn't that exactly the reason why we start the here text with "<<-EOF",
not the usual "<<EOF"?
quoted hunk
required for this specific test.

Signed-off-by: Frans Klaver <redacted>
---
 t/t0061-run-command.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t0061-run-command.sh b/t/t0061-run-command.sh
index 8d4938f..95e89bc 100755
--- a/t/t0061-run-command.sh
+++ b/t/t0061-run-command.sh
@@ -8,8 +8,8 @@ test_description='Test run command'
 . ./test-lib.sh
 
 cat >hello-script <<-EOF
-	#!$SHELL_PATH
-	cat hello-script
+#!$SHELL_PATH
+cat hello-script
 EOF
 >empty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help