From ca3ebdf5b2579d45b478909435b57420a0d2a103 Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Fri, 20 May 2005 20:49:13 -0400 Subject: [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 9a55712..6fb7b1a 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 -- cgit v0.10.2-6-g49f6