login
Header Space

 
 

Re: [BUG] t7004 (master) busted on Leopard

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Wincent Colaiuta <win@...>
Cc: Git Mailing List <git@...>
Date: Thursday, November 15, 2007 - 10:37 am

Hi,

On Thu, 15 Nov 2007, Wincent Colaiuta wrote:


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.)

I imagine that it is that MacOSX' sed is adding a trailing newline (not 
the regexp like you suggested).  Which means that "wc -l" would print "1".  
(You can see for yourself if you run the script with "sh -x ...".)

IMHO a good solution would be

	test -z "$(grep -e '^#' -e '^$' actual)"

Could you test, please?

Thanks,
Dscho
-
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, 9:38 am)
Re: [BUG] t7004 (master) busted on Leopard, Johannes Schindelin, (Thu Nov 15, 10:37 am)
[PATCH] Fix git-tag test breakage caused by broken sed on Le..., Wincent Colaiuta, (Thu Nov 15, 11:16 am)
[PATCH v2] Fix git-tag test breakage caused by broken sed on..., Wincent Colaiuta, (Thu Nov 15, 11:47 am)
Re: [BUG] t7004 (master) busted on Leopard, Wincent Colaiuta, (Thu Nov 15, 11:12 am)
speck-geostationary