* [PATCH] t0060: fix whitespace in "wc -c" invocation
@ 2009-03-23 6:22 Jeff King
2009-03-23 8:11 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Jeff King @ 2009-03-23 6:22 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Johannes Sixt, Mike Ralphson, git
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 <peff@peff.net>
---
On top of 'next'.
I noticed the breakage on Solaris; I suspect AIX is broken, too.
t/t0060-path-utils.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index 86000e2..53cf1f8 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))
--
1.6.2.1.276.gd47fa
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] t0060: fix whitespace in "wc -c" invocation
2009-03-23 6:22 [PATCH] t0060: fix whitespace in "wc -c" invocation Jeff King
@ 2009-03-23 8:11 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2009-03-23 8:11 UTC (permalink / raw)
To: Jeff King; +Cc: Johannes Sixt, Mike Ralphson, git
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-23 8:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23 6:22 [PATCH] t0060: fix whitespace in "wc -c" invocation Jeff King
2009-03-23 8:11 ` 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).