[BUG] t7004 (master) busted on Leopard

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wincent Colaiuta
Date: Thursday, November 15, 2007 - 6:38 am

Commit 4d8b1dc850 added a couple of tests to t7004, and my testing  
reveals that this one has been broken on Leopard since then:

* FAIL 83: message in editor has initial comment
GIT_EDITOR=cat git tag -a initial-comment > actual || true &&
test $(sed -n "/^\(#\|\$\)/p" actual | wc -l) -gt 0

(Not sure whether this affects other platforms, or versions of Mac OS  
X prior to Leopard, as I only have one machine here.)

The problem is the version of sed that ships with Leopard fails to  
match the initial comment with this syntax:

sed -n "/^\(#\|\$\)/p" actual

An alternative that works is:

sed -n "/^[#\$]/p" actual

Can someone with knowledge of sed compatibility across multiple  
platforms suggest an alternative which will work on a wider range of  
systems?

Cheers,
Wincent

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] t7004 (master) busted on Leopard, Wincent Colaiuta, (Thu Nov 15, 6:38 am)
Re: [BUG] t7004 (master) busted on Leopard, Johannes Schindelin, (Thu Nov 15, 7:37 am)
Re: [BUG] t7004 (master) busted on Leopard, Wincent Colaiuta, (Thu Nov 15, 8:12 am)
[PATCH] Fix git-tag test breakage caused by broken sed on ..., Wincent Colaiuta, (Thu Nov 15, 8:16 am)
[PATCH v2] Fix git-tag test breakage caused by broken sed ..., Wincent Colaiuta, (Thu Nov 15, 8:47 am)