Add harness-compatible unit coverage for substitution parsing, escaped syntax, compound commands, and edge-case inputs.