{"thread":{"id":"18479","subject":"[PATCH] t0060: fix whitespace in \"wc -c\" invocation","startedAt":"2009-03-23T06:22:29Z","lastAt":"2009-03-23T08:11:49Z","messageCount":2,"participants":["Jeff King","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"109000","messageId":"20090323062229.GA5535@coredump.intra.peff.net","threadId":"18479","inReplyTo":null,"subject":"[PATCH] t0060: fix whitespace in \"wc -c\" invocation","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-03-23T06:22:29Z","receivedAt":"2009-03-23T06:22:29Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"Some platforms like to stick extra whitespace in the output\nof \"wc -c\"; using the result without quotes gets the shell\nto collapse the whitespace.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\nOn top of 'next'.\n\nI noticed the breakage on Solaris; I suspect AIX is broken, too.\n\n t/t0060-path-utils.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh\nindex 86000e2..53cf1f8 100755\n--- a/t/t0060-path-utils.sh\n+++ b/t/t0060-path-utils.sh\n@@ -17,7 +17,7 @@ norm_path() {\n # which means that the path / accounts for this many characters:\n rootoff=$(test-path-utils normalize_path_copy / | wc -c)\n # Account for the trailing LF:\n-if test \"$rootoff\" = 2; then\n+if test $rootoff = 2; then\n \trootoff=\t# we are on Unix\n else\n \trootoff=$(($rootoff-1))\n-- \n1.6.2.1.276.gd47fa\n"},{"id":"109019","messageId":"7v1vso8xq2.fsf@gitster.siamese.dyndns.org","threadId":"18479","inReplyTo":"20090323062229.GA5535@coredump.intra.peff.net","subject":"Re: [PATCH] t0060: fix whitespace in \"wc -c\" invocation","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-03-23T08:11:49Z","receivedAt":"2009-03-23T08:11:49Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}