{"thread":{"id":"31942","subject":"[PATCH] t9401: Use tr to handle TAB","startedAt":"2012-10-25T13:06:31Z","lastAt":"2012-10-25T13:06:31Z","messageCount":1,"participants":["Torsten Bögershausen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"201900","messageId":"201210251506.32393.tboegi@web.de","threadId":"31942","inReplyTo":null,"subject":"[PATCH] t9401: Use tr to handle TAB","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2012-10-25T13:06:31Z","receivedAt":"2012-10-25T13:06:31Z","isPatch":true,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"Not all sed versions understand \\s as whitespace\nUse tr to translate '\\t' into ' ' before feeding the line into sed\n\nSigned-off-by: Torsten Bögershausen <tboegi@web.de>\n---\n t/t9401-git-cvsserver-crlf.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t9401-git-cvsserver-crlf.sh b/t/t9401-git-cvsserver-crlf.sh\nindex cdb8360..f2ec9d2 100755\n--- a/t/t9401-git-cvsserver-crlf.sh\n+++ b/t/t9401-git-cvsserver-crlf.sh\n@@ -46,7 +46,7 @@ check_status_options() {\n \techo \"Error from cvs status: $1 $2\" >> \"${WORKDIR}/marked.log\"\n \treturn 1;\n     fi\n-    got=\"$(sed -n -e 's/^\\s*Sticky Options:\\s*//p' \"${WORKDIR}/status.out\")\"\n+    got=\"$(tr '\\t' ' ' < \"${WORKDIR}/status.out\" | sed -n -e 's/^ *Sticky Options: *//p')\"\n     expect=\"$3\"\n     if [ x\"$expect\" = x\"\" ] ; then\n \texpect=\"(none)\"\n-- \n1.7.12\n"}]}