From: Jeff King Date: Mon, 23 Mar 2009 06:22:29 +0000 (-0400) Subject: t0060: fix whitespace in "wc -c" invocation X-Git-Tag: v1.6.3-rc0~93^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28baf82ea359d9f2579fd3a7e7e2e5e2bd5da2a9;p=git.git t0060: fix whitespace in "wc -c" invocation Some platforms like to stick extra whitespace in the output of "wc -c"; using the result without quotes gets the shell to collapse the whitespace. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh index 86000e26c..53cf1f8dc 100755 --- a/t/t0060-path-utils.sh +++ b/t/t0060-path-utils.sh @@ -17,7 +17,7 @@ norm_path() { # which means that the path / accounts for this many characters: rootoff=$(test-path-utils normalize_path_copy / | wc -c) # Account for the trailing LF: -if test "$rootoff" = 2; then +if test $rootoff = 2; then rootoff= # we are on Unix else rootoff=$(($rootoff-1))