Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2016 01:48:52 +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@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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

            Bug ID: 210607
           Summary: patch to bin/cat/cat.c to align output between when
                    invoked with -be & -ne flags
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: venture37@geeklan.co.uk

Created attachment 171845
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=171845&action=edit
patch cat.c & ATF tests

The attached patch amends bin/cat/cat.c so the output is the same aside
from blank lines being numbered or unnumbered, depending on whether cat
was invoked with -ne or -be.

At present, when cat is invoked with -be, there is an aditional
difference that the '$' on blank lines is placed on the far left of the
output.

The patch originates from r1.17 of bin/cat/cat.c from NetBSD.

Additionally, the ATF test is amended to test for the behaviour correctly (the
test previously only checked if text was aligned, without blank lines where the
issue being  tested for was present). This change is present upstream but
provided here in case a vendor import is not feasible at this time.

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