Date: Fri, 05 Aug 2016 14:15:03 +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-MIKeM4GgJF@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 #2 from Sevan Janiyan <venture37@geeklan.co.uk> --- (In reply to John Baldwin from comment #1) > Note that GNU cat follows the current behavior: These extensions to cat were introduced in BSD so the GNU implementation is= an imitation of ours https://svnweb.freebsd.org/csrg/bin/cat/cat.c?r1=3D962&r2=3D1357 > The idea being that you only get leading indentation if there is a line n= umber. Going to the description in the man pages, there is no reference to such behaviour which is really frustrating as it leaves it down to interpretatio= n.=20=20 FreeBSD -b "Number the non-blank output lines, starting at 1." -e "Display non-printing characters (see the -v option), and display a doll= ar sign (`$') at the end of each line." -n "Number the output lines, starting at 1." 2.9.1BSD -b "This, together with -n cause numbers to be omitted from blank lines." -e "Follow ends of lines with the $ character." -n "Number each line." I'd say for consistency the output should the same aside from what gets omi= tted with a specific flag when it is specified. --=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-MIKeM4GgJF>