When my pre-receive bash script hook outputs via echo "foo" or `git cat-file blob` etc... i get output like
remote: foo bar [K
remote: baz bang [K
remote: biz bop boop bap bing [K
with those '[K' getting appended to everyline, i am not sure what is causing it or how to get rid of it. It only seems to happen on lines that have text on it, not blank lines, but i might be wrong about that.
EDIT:
It seems this strange string has a esc caracter in it, from the ascii tables
Oct Dec Hex Char
033 27 1B ESC (escape)