git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix use of wc in t0000-basic
@ 2005-05-21  0:49 Daniel Barkalow
  2005-05-21  1:08 ` Sean
  2005-05-21 10:37 ` Herbert Xu
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Barkalow @ 2005-05-21  0:49 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

The version of wc I have (GNU textutils-2.1) puts spaces at the beginning
of lines. This patch should work for any version of wc.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Acked-by: Junio C Hamano <junkio@cox.net>
Index: t/t0000-basic.sh
===================================================================
--- 58741c69570705801db4b785681790d636475695/t/t0000-basic.sh  (mode:100755 sha1:9a557129d98b499bcd601903d6646de29ba4bfc5)
+++ uncommitted/t/t0000-basic.sh  (mode:100755)
@@ -32,7 +32,7 @@
 find .git/objects -type d -print >full-of-directories
 test_expect_success \
     '.git/objects should have 256 subdirectories.' \
-    'test "$(wc -l full-of-directories | sed -e "s/ .*//")" = 257'
+    'test $(cat full-of-directories | wc -l) = 257'
 
 ################################################################
 # Basics of the basics



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

end of thread, other threads:[~2005-05-21 17:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-21  0:49 [PATCH] Fix use of wc in t0000-basic Daniel Barkalow
2005-05-21  1:08 ` Sean
2005-05-21  1:10   ` Daniel Barkalow
2005-05-21  1:13     ` Sean
2005-05-21  1:16       ` Daniel Barkalow
2005-05-21  1:43         ` Junio C Hamano
2005-05-21 10:37 ` Herbert Xu
2005-05-21 10:53   ` Junio C Hamano
2005-05-21 11:01     ` Herbert Xu
2005-05-21 17:24       ` 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).