

Yes, it is not tied to coreutils. I have also used it on findutils, sed and procps, and there are example recordings for jq. uutils does have a big test suite and also runs the GNU tests. The difference is that these cases are generated from each tool’s --help and recorded from the GNU binary, so they catch small things nobody thought to write a test for, like the wording of an error or an exit code. The fix PRs I sent add those cases to the uutils suite.


















Fair point, autoexpect does take the typing out of it. It still records one session that you drive yourself though. What I wanted was the step before that: read the tool’s --help, try lots of flag combinations and odd inputs on its own, and keep hundreds of cases without me deciding each one. Then replay them against the rewrite. For a few interactive flows, autoexpect is probably the better tool.