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/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210607 --- Comment #5 from John Baldwin <jhb@FreeBSD.org> --- Pipe your non "-e" results through hd to see what I mean about -b not addin= g 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 sin= ce you risk breaking existing scripts/setups. I do think we should be more cl= ear in documenting. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210607-8-cVy3eva4Ag>