Open phord opened 13 years ago
Colortail is writing null bytes after each EOL character. This shows up when I pipe into less or hexdump.
echo test > foo echo another test >> foo colortail foo | hexdump -C 00000000 3d 3d 3e 20 66 6f 6f 20 3c 3d 3d 0a 74 65 73 74 |==> foo <==.test| 00000010 0a 00 61 6e 6f 74 68 65 72 20 74 65 73 74 0a 00 |..another test..|
Note: This also causes 'grep' to consider the emitted stream to be binary.
this happens because "ends" (a null char) is added to the end of each line after the \n or endl
Colortail is writing null bytes after each EOL character. This shows up when I pipe into less or hexdump.