git: sed(1): sync with FreeBSD

Daniel Fojt deef at crater.dragonflybsd.org
Mon Jun 15 12:37:04 PDT 2020


commit bf6a2473929255be8763d37cacde8aa706773c95
Author: Daniel Fojt <df at neosystem.org>
Date:   Mon Jun 15 19:15:41 2020 +0200

    sed(1): sync with FreeBSD
    
    Summary of notable changes:
    
    - fix sed functions 'i' and 'a' from discarding leading white space
    - rewrite the main loop of the "sed s/..." command
    - fix -i option behavior with 'q' command
    - process \r, \n, and \t
    - attempt to learn about hex escapes (e.g. \x27)
    - read commands from stdin when -f - is passed
    
    Reviewed by: Sascha Wildner

Summary of changes:
 usr.bin/sed/compile.c | 148 ++++++++++++++++++++++++++++++++++++++++++++-----
 usr.bin/sed/defs.h    |   4 +-
 usr.bin/sed/extern.h  |   8 ++-
 usr.bin/sed/main.c    |  33 ++++++++---
 usr.bin/sed/misc.c    |   6 +-
 usr.bin/sed/process.c | 150 +++++++++++++++++++++++++++-----------------------
 usr.bin/sed/sed.1     |  51 +++++++++++++++--
 7 files changed, 297 insertions(+), 103 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bf6a2473929255be8763d37cacde8aa706773c95


-- 
DragonFly BSD source repository



More information about the Commits mailing list