DragonFly commits List (threaded) for 2009-06
DragonFly BSD
DragonFly commits List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.3.1.252.gd2af8 master usr.bin/sed compile.c defs.h misc.c process.c sed.1


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Jun 2009 05:06:34 -0700 (PDT)

commit d2af8296ab6d4e1e5051eccb7f51815bbda7a71f
Author: Sascha Wildner <saw@online.de>
Date:   Sat Jun 13 13:39:15 2009 +0200

    sed(1): Sync with FreeBSD.
    
    * Add workaround for a back reference when no corresponding parenthesized
      subexpression is defined. For example, the following command line caused
      unexpected behavior like segmentation fault:
    
      % echo test | sed -e 's/test/\1/'
    
    * Fix the code to conform to the "or more" part of the following POSIX
      specification.
    
      "A function can be preceded by one or more '!' characters, in which
      case the function shall be applied if the addresses do not select
      the pattern space."
    
    * Implement "addr1,+N" ranges - not dissimilar to grep's -A switch.

Summary of changes:
 usr.bin/sed/compile.c |   23 +++++++++++++++++++----
 usr.bin/sed/defs.h    |    7 ++++---
 usr.bin/sed/misc.c    |    2 +-
 usr.bin/sed/process.c |   37 ++++++++++++++++++++++---------------
 usr.bin/sed/sed.1     |   31 +++++++++++++++++--------------
 5 files changed, 63 insertions(+), 37 deletions(-)

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]