[Bug 172862] sed(1) improperly deals with escape chars

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jun 7 20:52:29 UTC 2020


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

Kyle Evans <kevans at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugs at FreeBSD.org,
                   |                            |kevans at freebsd.org
           Assignee|bugs at FreeBSD.org            |kevans at freebsd.org

--- Comment #5 from Kyle Evans <kevans at freebsd.org> ---
\t (and \r and \n) was properly implemented in r355590 and MFC'd to stable/12
in r355902.

(In reply to Yuri Pankov from comment #3)

I tend to agree that it's a standards violation based on my re-reading of the
spec, but I would propose that it's an OK violation in the name of reasonable
expectations and not making users' lives harder. \t => t in a bracketed
expression serves little value and doesn't accomplish anything you can't do
otherwise, but being able to [ \t] to capture the subset of [:space:] that
might represent leading indentation you want to normalize.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.


More information about the freebsd-bugs mailing list