* [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q'
@ 2008-02-23 8:41 Steffen Prohaska
2008-02-23 18:27 ` Junio C Hamano
2008-02-23 19:28 ` Daniel Barkalow
0 siblings, 2 replies; 4+ messages in thread
From: Steffen Prohaska @ 2008-02-23 8:41 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Daniel Barkalow, Steffen Prohaska
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.
[1] http://opengroup.org/onlinepubs/007908799/xcu/sed.html
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
---
t/t4014-format-patch.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
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
@@ -106,7 +106,7 @@ test_expect_success 'extra headers without newlines' '
git config --replace-all format.headers "To: R. E. Cipient <rcipient@example.com>" &&
git config --add format.headers "Cc: S. E. Cipient <scipient@example.com>" &&
git format-patch --stdout master..side >patch3 &&
- sed -e "/^$/Q" patch3 > hdrs3 &&
+ sed -e "/^$/q" patch3 > hdrs3 &&
grep "^To: R. E. Cipient <rcipient@example.com>$" hdrs3 &&
grep "^Cc: S. E. Cipient <scipient@example.com>$" hdrs3
@@ -117,7 +117,7 @@ test_expect_success 'extra headers with multiple To:s' '
git config --replace-all format.headers "To: R. E. Cipient <rcipient@example.com>" &&
git config --add format.headers "To: S. E. Cipient <scipient@example.com>" &&
git format-patch --stdout master..side > patch4 &&
- sed -e "/^$/Q" patch4 > hdrs4 &&
+ sed -e "/^$/q" patch4 > hdrs4 &&
grep "^To: R. E. Cipient <rcipient@example.com>,$" hdrs4 &&
grep "^ *S. E. Cipient <scipient@example.com>$" hdrs4
'
@@ -125,7 +125,7 @@ test_expect_success 'extra headers with multiple To:s' '
test_expect_success 'additional command line cc' '
git config --replace-all format.headers "Cc: R. E. Cipient <rcipient@example.com>" &&
- git format-patch --cc="S. E. Cipient <scipient@example.com>" --stdout master..side | sed -e "/^$/Q" >patch5 &&
+ git format-patch --cc="S. E. Cipient <scipient@example.com>" --stdout master..side | sed -e "/^$/q" >patch5 &&
grep "^Cc: R. E. Cipient <rcipient@example.com>,$" patch5 &&
grep "^ *S. E. Cipient <scipient@example.com>$" patch5
'
--
1.5.4.2.199.gb454ad
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q'
2008-02-23 8:41 [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q' Steffen Prohaska
@ 2008-02-23 18:27 ` Junio C Hamano
2008-02-23 19:28 ` Daniel Barkalow
1 sibling, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2008-02-23 18:27 UTC (permalink / raw)
To: Steffen Prohaska; +Cc: git, Daniel Barkalow
Steffen Prohaska <prohaska@zib.de> 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.
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q'
2008-02-23 8:41 [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q' Steffen Prohaska
2008-02-23 18:27 ` Junio C Hamano
@ 2008-02-23 19:28 ` Daniel Barkalow
2008-02-23 19:34 ` Junio C Hamano
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Barkalow @ 2008-02-23 19:28 UTC (permalink / raw)
To: Steffen Prohaska; +Cc: Junio C Hamano, git
On Sat, 23 Feb 2008, Steffen Prohaska wrote:
> 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.
>
> [1] http://opengroup.org/onlinepubs/007908799/xcu/sed.html
Looks good to me; GNU man pages annoyingly don't tell you what's not more
standard.
-Daniel
*This .sig left intentionally blank*
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q'
2008-02-23 19:28 ` Daniel Barkalow
@ 2008-02-23 19:34 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2008-02-23 19:34 UTC (permalink / raw)
To: Daniel Barkalow; +Cc: Steffen Prohaska, git
Daniel Barkalow <barkalow@iabervon.org> writes:
> On Sat, 23 Feb 2008, Steffen Prohaska wrote:
>
>> 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.
>>
>> [1] http://opengroup.org/onlinepubs/007908799/xcu/sed.html
>
> Looks good to me; GNU man pages annoyingly don't tell you what's not more
> standard.
Probably. You have to be an old git ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-23 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-23 8:41 [PATCH] t4014: Replace sed's non-standard 'Q' by standard 'q' Steffen Prohaska
2008-02-23 18:27 ` Junio C Hamano
2008-02-23 19:28 ` Daniel Barkalow
2008-02-23 19:34 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).