From: Jim Meyering Date: Sat, 12 Apr 2003 19:52:33 +0000 (+0000) Subject: add test corresponding to today's too-many-newlines fix X-Git-Tag: v5.0.1~699 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7fcd8d3ede7cf1b44ec1fe77ece850145a0cc4a;p=thirdparty%2Fcoreutils.git add test corresponding to today's too-many-newlines fix --- diff --git a/tests/misc/nl b/tests/misc/nl index d568af8892..2bc9c89369 100755 --- a/tests/misc/nl +++ b/tests/misc/nl @@ -27,12 +27,17 @@ echo b | nl -s%n >> out || fail=1 echo c | nl -n ln >> out || fail=1 echo d | nl -n rn >> out || fail=1 echo e | nl -n rz >> out || fail=1 +echo === >> out +printf 'a\n\n' | nl > t || fail=1; cat -A t >> out cat <<\EOF > exp 1 a 1%nb 1 c 1 d 000001 e +=== + 1^Ia$ + $ EOF cmp out exp || fail=1