From: Daniel Barkalow Date: Sat, 21 May 2005 00:49:13 +0000 (-0400) Subject: [PATCH] Fix use of wc in t0000-basic X-Git-Tag: v0.99~519 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca3ebdf5b2579d45b478909435b57420a0d2a103;p=git.git [PATCH] Fix use of wc in t0000-basic 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 Acked-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh index 9a557129d..6fb7b1a12 100755 --- a/t/t0000-basic.sh +++ b/t/t0000-basic.sh @@ -32,7 +32,7 @@ test_expect_success \ 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