This is a common theme with the classic unixy text processing based workflows, they work really nicely when the incoming data is nice and simple but fall apart on edge cases. And because often also the error handling is incomplete it might be difficult to know that the pipeline is producing garbage output.
Related example is the recently discussed problems with filenames, and the many pitfalls that scripts can stumble upon when handling them.
Related example is the recently discussed problems with filenames, and the many pitfalls that scripts can stumble upon when handling them.