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 <brian@gernhardtsoftware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brian Gernhardt committed
Jul 1, 2013 at 14:59 UTC
7c37521487332fd700e2fa58bd2547d275e4f4d2
1 file changed
+2
-2
t/t4205-log-pretty-formats.sh
+2
-2
@@ -192,7 +192,7 @@ test_expect_success 'left alignment formatting with trunc' "
192
message ..
193
message ..
194
add bar Z
195
-$(commit_msg "" "8" ".\+$")
195
+$(commit_msg "" "8" "..*$")
196
EOF
197
test_cmp expected actual
198
"
@@ -310,7 +310,7 @@ test_expect_success 'left/right alignment formatting with stealing' "
310
short long long long
311
message .. A U Thor
312
add bar A U Thor
313
-$(commit_msg "" "8" ".\+$") A U Thor
313
+$(commit_msg "" "8" "..*$") A U Thor
314
EOF
315
test_cmp expected actual
316
"