From: Brian Gernhardt Date: Mon, 1 Jul 2013 18:59:59 +0000 (-0400) Subject: t4205: replace .\+ with ..* in sed commands X-Git-Tag: v1.8.4-rc0~71^2~5 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7c37521487332fd700e2fa58bd2547d275e4f4d2;p=git-core%2Fgit.git t4205: replace .\+ with ..* in sed commands OS X's sed only accepts basic regular expressions, which does not allow the + quantifier. However '..*' (anything, followed by zero or more anything) is the same as '.\+' (one or more anything) and valid in any regular expression language. Signed-off-by: Brian Gernhardt Signed-off-by: Junio C Hamano --- diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index 719d132c6..3cfb74401 100755 --- a/t/t4205-log-pretty-formats.sh +++ b/t/t4205-log-pretty-formats.sh @@ -192,7 +192,7 @@ test_expect_success 'left alignment formatting with trunc' " message .. message .. add bar Z -$(commit_msg "" "8" ".\+$") +$(commit_msg "" "8" "..*$") EOF test_cmp expected actual " @@ -310,7 +310,7 @@ test_expect_success 'left/right alignment formatting with stealing' " short long long long message .. A U Thor add bar A U Thor -$(commit_msg "" "8" ".\+$") A U Thor +$(commit_msg "" "8" "..*$") A U Thor EOF test_cmp expected actual "