git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] t7004 (master) busted on Leopard
@ 2007-11-15 13:38 Wincent Colaiuta
  2007-11-15 14:37 ` Johannes Schindelin
  0 siblings, 1 reply; 26+ messages in thread
From: Wincent Colaiuta @ 2007-11-15 13:38 UTC (permalink / raw)
  To: Git Mailing List

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

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2007-11-17  8:55 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15 13:38 [BUG] t7004 (master) busted on Leopard Wincent Colaiuta
2007-11-15 14:37 ` Johannes Schindelin
2007-11-15 14:48   ` David Kastrup
2007-11-15 15:12   ` Wincent Colaiuta
2007-11-15 15:16   ` [PATCH] Fix git-tag test breakage caused by broken sed " Wincent Colaiuta
2007-11-15 15:47     ` [PATCH v2] " Wincent Colaiuta
     [not found]       ` <7v4pfm3h6f.fsf@gitster.siamese.dyndns.org>
2007-11-16 13:45         ` Wincent Colaiuta
2007-11-16 13:48           ` Wincent Colaiuta
2007-11-16 16:59             ` Mike Hommey
2007-11-16 17:25               ` Wincent Colaiuta
2007-11-16 17:26               ` [PATCH] Fix t7004 which fails with retarded sed Mike Hommey
2007-11-16 17:58                 ` Benoit Sigoure
2007-11-16 19:15                   ` Mike Hommey
2007-11-16 18:02                 ` Wincent Colaiuta
2007-11-16 18:26                 ` Junio C Hamano
2007-11-16 19:17                   ` Mike Hommey
2007-11-16 19:36                     ` Junio C Hamano
2007-11-16 20:28                       ` [PATCH] Fix and improve t7004 Mike Hommey
2007-11-16 21:04                         ` Benoit Sigoure
2007-11-16 21:11                           ` Mike Hommey
2007-11-16 21:31                             ` Benoit Sigoure
2007-11-16 21:35                               ` Mike Hommey
2007-11-16 21:47                                 ` Benoit Sigoure
2007-11-16 21:42                             ` Junio C Hamano
2007-11-16 22:02                               ` Mike Hommey
2007-11-17  8:55                                 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).