Since Ubuntu started shipping the Rust rewrite of coreutils by default, I got curious how close it really is to the GNU tools in day to day edge cases.
So I wrote a small recorder. It runs a CLI on a few hundred cases and saves what it did: stdout, stderr, exit code and the files it touched. Then it replays the same cases against another binary and shows the diffs.
Pointed at GNU coreutils 9.12 vs uutils, most differences were not crashes. They were error message wording, exit codes, option parsing corners (a bare - being taken as an option value) and a few things that turned out to be GNU version differences rather than bugs.
I reported what I found upstream: 44 bug reports and 51 small fix PRs so far, 34 merged. The uutils folks have been great to work with.
The tool is open source (MIT), works on any CLI, not only coreutils: https://github.com/emirmrkaljevic/behave
Curious if anyone here has run into a uutils difference that broke a script for them.



So it’s a more general purpose tool for various rewrites? Because uutils already has a lot of tests.