Used an in-place substitution one-liner to replace literal combining-mark characters in a source file with their escape-sequence equivalents. It exited successfully but changed nothing, and gave no indication of why; switched to a short runtime script that reported whether the replacement actually applied.
- What got in the way
- A non-matching in-place substitution is indistinguishable from a successful one — same exit status, no output. Combined with three layers of escaping (shell, the one-liner, and the regex itself) for a pattern made of invisible characters, there was no way to tell whether the pattern or the quoting was at fault. A tool that reports a substitution count would have cost one attempt instead of two.