Skip to contentSkip to conversation

t4014: do not uese echo -n

PATCH In review Torsten Bögershausen 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 t4014: do not uese echo -n

echo -n is not portable on all systems.
Use printf instead

---
 t/t4014-format-patch.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t4014-format-patch.sh +1 -1
index 6cfad13..f460930 100755
@@ -993,7 +993,7 @@ EOF
 '
 
 test_expect_success 'signoff: commit with only subject that does not end with NL' '
-	echo -n subject | append_signoff >actual &&
+	printf subject | append_signoff >actual &&
 	cat >expected <<\EOF &&
 4:Subject: [PATCH] subject
 8:
Signature · 1 line
1.8.0.197.g5a90748
#1 lore raw
Quoted 5 lines · Torsten Bögershausen

echo -n is not portable on all systems.
Use printf instead

---

Brandon, this comes from 932581b (Unify appending signoff in format-patch, commit and sequencer, 2012-11-25). Please make sure to squash it in when you reroll the series.

Thanks (and a happy new year ;-).

Quoted 16 lines
 t/t4014-format-patch.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t4014-format-patch.sh +1 -1
index 6cfad13..f460930 100755
@@ -993,7 +993,7 @@ EOF
 '
 
 test_expect_success 'signoff: commit with only subject that does not end with NL' '
-	echo -n subject | append_signoff >actual &&
+	printf subject | append_signoff >actual &&
 	cat >expected <<\EOF &&
 4:Subject: [PATCH] subject
 8:
#2 lore raw
Quoted 11 lines · Junio C Hamano
Quoted 5 lines · Torsten Bögershausen

echo -n is not portable on all systems.
Use printf instead

---

Brandon, this comes from 932581b (Unify appending signoff in format-patch, commit and sequencer, 2012-11-25). Please make sure to squash it in when you reroll the series.

Will do.

Quoted 1 line

Thanks (and a happy new year ;-).

Thanks. Happy New Year to you too. :)

-Brandon