>From 845e03a2c1d5fa137b4df33e048b008b7b6c3153 Mon Sep 17 00:00:00 2001 From: Dave Odell Date: Tue, 1 Oct 2019 11:09:15 -0700 Subject: [PATCH 2/2] cmp: add test case for Bug#37558 * tests/cmp: New test case (Bug#37558). Copyright-paperwork-exempt: yes --- tests/cmp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/cmp b/tests/cmp index 97f2b5f..ff49388 100755 --- a/tests/cmp +++ b/tests/cmp @@ -218,4 +218,14 @@ case `LC_ALL=C cmp -b bad bug` in *) echo 'expected cmp -b to report a and u'; fail=1;; esac +printf 'Jackdaws love my big sphinx of quartz!' > j1 +printf 'jackdaws love my big sphinx of quartz.' > j2 +cat <<'EOF' > exp2 || fail=1 + 1 112 J 152 j +38 41 ! 56 . +EOF +cmp -bl j1 j2 > out2 +test $? -eq 1 || fail=1 +compare exp2 out2 || fail=1 + Exit $fail -- 2.21.0