Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Aug 2016 15:28:54 +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-M3tNCJhfZX@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 #3 from John Baldwin <jhb@FreeBSD.org> ---
(In reply to Sevan Janiyan from comment #2)
1) The 'BSD' output from CSRG is the current one, not NetBSD's recent change. 
The other output has been in place for 35 years.  There has to be a compelling
reason to change it vs the tradeoff of breaking existing scripts and reducing
compatibility with other systems.  'cat' on OS X follows the current output as
well (inherited from BSD of course).

2) The language is not clear (and I'd be fine with clarifying it), but what you
are changing is to have 'cat -be' insert extra leading blankspace for blank
lines, but 'cat -b' does not.  That seems far less intuitive to me from any of
the descriptions.  It seems more consistent for 'cat -b' to always include
leading blankspace or to never include, not to only do it for '-e'.

-- 
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-M3tNCJhfZX>