Date: Fri, 05 Aug 2016 17:30:21 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210607] patch to bin/cat/cat.c to align output between when invoked with -be & -ne flags Message-ID: <bug-210607-8-cVy3eva4Ag@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-210607-8@https.bugs.freebsd.org/bugzilla/> References: <bug-210607-8@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210607 --- Comment #5 from John Baldwin <jhb@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210607-8-cVy3eva4Ag>
