[Bug 210607] patch to bin/cat/cat.c to align output between when invoked with -be & -ne flags

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 5 17:30:21 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210607

--- Comment #5 from John Baldwin <jhb at FreeBSD.org> ---
Pipe your non "-e" results through hd to see what I mean about -b not adding a
prefix.  Right now, this will omit blank lines:

cat -b < foo | grep -v '^$'

because "plain" 'cat -b' doesn't modify the content of blank lines.  Right now,
'cat -be' only modifies each line by adding the trailing '$', it does not
insert extra whitespace.  The problem is that I think arguments can be made for
both interpretations, so I would err on the side of not changing things since
you risk breaking existing scripts/setups.  I do think we should be more clear
in documenting.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list