You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Side-by-side output can show a difference while uutils diff exits 0.
On Linux x86_64, with GNU diffutils 3.12 and the uutils build at e4f12ad:
repo=$PWD
work=$(mktemp -d)
cd "$work"
: > a
printf 'a\n' > b
LC_ALL=C TZ=UTC diff -y a b
printf 'GNU status: %s\n' "$?"
LC_ALL=C TZ=UTC "$repo/target/release/diffutils" diff -y a b
printf 'uutils status: %s\n' "$?"
Both commands print the same added line and nothing on stderr. GNU exits 1, while uutils exits 0. A caller checking the exit status therefore treats the files as equal.
Activity