Code

t0090: be prepared that 'wc -l' writes leading blanks
authorJohannes Sixt <j6t@kdbg.org>
Tue, 20 Dec 2011 08:24:21 +0000 (09:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Dec 2011 19:15:16 +0000 (11:15 -0800)
commit4cd675565647b2ccacdd6c93841b4ff06c32b16a
treef1806dbab91bed009a3c84675f108c053b5501c7
parent6c52ec8a9ab48b50fc8bf9559467d5a4cf7eee3b
t0090: be prepared that 'wc -l' writes leading blanks

Use 'printf %d $(whatever|wc -l)' so that the shell removes the blanks
for us.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Acked-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0090-cache-tree.sh