Oh and I've seen you really escape \ only if it's the first character. Same here, I'd suggest to apply the same escaping rules as for the other output, and escape '\\' '\n' and '\r' as soon as any of them occurs in the output.
- bug#64392: cksum: escaping issues of --check outp... Christoph Anton Mitterer
- bug#64392: cksum: escaping issues of --check... Pádraig Brady
- bug#64392: cksum: escaping issues of --c... Christoph Anton Mitterer
- bug#64392: cksum: escaping issues of... Pádraig Brady
- bug#64392: cksum: escaping issue... Christoph Anton Mitterer
- bug#64392: cksum: escaping ... Pádraig Brady
- bug#64392: cksum: escap... Christoph Anton Mitterer
- bug#64392: cksum: escaping issues of --c... Christoph Anton Mitterer