Johannes Schindelin [off-list ref] writes:
Hi,
On Thu, 15 Nov 2007, Wincent Colaiuta wrote:
quoted
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
I think this is our good old friend, MacOSX' sed. (Wasn't there a
question today what's wrong with using sed? I think this issue
qualifies.)
\| is not portable. $ in groups is not portable.
I imagine that it is that MacOSX' sed is adding a trailing newline (not
the regexp like you suggested).
I imagine it is one of the above. Most sed's add trailing newlines.
--
David Kastrup