diff options
author | Jim Meyering <jim@meyering.net> | 2003-04-12 19:52:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-04-12 19:52:33 +0000 |
commit | b7fcd8d3ede7cf1b44ec1fe77ece850145a0cc4a (patch) | |
tree | 4ad75c8f20cc3c7ce3479c3edc21ea6e28ea726d /tests/misc/nl | |
parent | b62edfd3f9220788d7ac31c2028b83d29dba47e5 (diff) | |
download | coreutils-b7fcd8d3ede7cf1b44ec1fe77ece850145a0cc4a.tar.xz |
add test corresponding to today's too-many-newlines fix
Diffstat (limited to 'tests/misc/nl')
-rwxr-xr-x | tests/misc/nl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/nl b/tests/misc/nl index d568af889..2bc9c8936 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 |