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

Re: [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q'

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:16

Steffen Prohaska [off-list ref] writes:
This commit should be applied on top of db/cover-letter.

-- >8 --

This commit avoids sed's 'Q' operator.  The Open Group's sed
man page [1] does not mention 'Q'.  sed on Mac OS X 10.4
does not accept Q.  'q' is sufficient for our purpose.
Thanks.
quoted hunk
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index a39e786..16aa99d 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -95,7 +95,7 @@ test_expect_success 'extra headers' '
 	git config --add format.headers "Cc: S. E. Cipient <scipient@example.com>
 " &&
 	git format-patch --stdout master..side > patch2 &&
-	sed -e "/^$/Q" patch2 > hdrs2 &&
+	sed -e "/^$/q" patch2 > hdrs2 &&
 	grep "^To: R. E. Cipient <rcipient@example.com>$" hdrs2 &&
 	grep "^Cc: S. E. Cipient <scipient@example.com>$" hdrs2
 	
I usually try to be pretty careful about these kind of things,
but these somehow slipped in.  Changing them to 'q' means the
output will now have an additional blank line at the end, but
that would not affect the result the later tests inspect, so
it's a good change.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help