Skip to content

Commit

Permalink
t4205: replace .\+ with ..* in sed commands
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Gernhardt authored and Junio C Hamano committed Jul 1, 2013
1 parent ecaee80 commit 7c37521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t4205-log-pretty-formats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
"
Expand Down Expand Up @@ -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
"
Expand Down

0 comments on commit 7c37521

Please sign in to comment.