Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2013 18:57:20 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259132 - head/usr.bin/sed
Message-ID:  <201312091857.rB9IvKqo039117@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon Dec  9 18:57:20 2013
New Revision: 259132
URL: http://svnweb.freebsd.org/changeset/base/259132

Log:
  Per the resolution of POSIX bug 0000779 (note 0002050) add support for using 'i'
  as a case insensitive flag.
  
  PR:		standards/184641
  Requested by:	David A. Wheeler <dwheeler@dwheeler.com>
  MFC After:	1 week

Modified:
  head/usr.bin/sed/compile.c
  head/usr.bin/sed/sed.1

Modified: head/usr.bin/sed/compile.c
==============================================================================
--- head/usr.bin/sed/compile.c	Mon Dec  9 18:52:21 2013	(r259131)
+++ head/usr.bin/sed/compile.c	Mon Dec  9 18:57:20 2013	(r259132)
@@ -582,6 +582,7 @@ compile_flags(char *p, struct s_subst *s
 		case 'p':
 			s->p = 1;
 			break;
+		case 'i':
 		case 'I':
 			s->icase = 1;
 			break;

Modified: head/usr.bin/sed/sed.1
==============================================================================
--- head/usr.bin/sed/sed.1	Mon Dec  9 18:52:21 2013	(r259131)
+++ head/usr.bin/sed/sed.1	Mon Dec  9 18:57:20 2013	(r259132)
@@ -31,7 +31,7 @@
 .\"	@(#)sed.1	8.2 (Berkeley) 12/30/93
 .\" $FreeBSD$
 .\"
-.Dd May 24, 2009
+.Dd December 9, 2013
 .Dt SED 1
 .Os
 .Sh NAME
@@ -196,7 +196,7 @@ option was specified);
 a context address
 that consists of a regular expression preceded and followed by a
 delimiter. The closing delimiter can also optionally be followed by the
-.Dq I
+.Dq i
 character, to indicate that the regular expression is to be matched
 in a case-insensitive way.
 .El
@@ -507,7 +507,7 @@ Append the pattern space to
 if a replacement was made.
 If the replacement string is identical to that which it replaces, it
 is still considered to have been a replacement.
-.It I
+.It i or I
 Match the regular expression in a case-insensitive way.
 .El
 .Pp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312091857.rB9IvKqo039117>