Ammend bin/cat/cat.c so the output is the same aside
authorsevan <sevan@FreeBSD.org>
Thu, 21 Sep 2017 14:14:49 +0000 (14:14 +0000)
committersevan <sevan@FreeBSD.org>
Thu, 21 Sep 2017 14:14:49 +0000 (14:14 +0000)
commitdee8fcc6f99ccd0894faf5ab9740a56d49af991a
tree9af7872736640f899c976e1bd60efba39685e2d7
parentdeed61f436ecad351fabada7d9d0a80d9cd37b25
Ammend bin/cat/cat.c so the output is the same aside
from blank lines being numbered or unnumbered, depending on whether cat
was invoked with -ne or -be.

At present, when cat is invoked with -be, there is an aditional
difference that the '$' on blank lines is placed on the far left of the
output.

Discussed in bug 210607.

While here, revert the workaround from r304035 which skipped the unit test for
this issue previously.

PR: 210607
Submitted by: myself
Reviewed by: bdrewery
Obtained from: NetBSD
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D12432
bin/cat/cat.c
bin/cat/tests/Makefile