Skip to content

do_tests.sh: deal with final newlines in the output

Valery Ushakov requested to merge nbuwe/yx:feature/test-chomping into main

Shell strips all final newlines in the command substitution, so provide a kludge that emits an additional sentinel character that the caller can then strip away with % (remove suffix). Try to wrap it up nicely to hide as much gory details as we can.

Enable keep/strip chomping tests.

Merge request reports