svn commit: r208398 - stable/8/tools/regression/usr.bin/sed

Marius Strobl marius at FreeBSD.org
Fri May 21 19:22:51 UTC 2010


Author: marius
Date: Fri May 21 19:22:50 2010
New Revision: 208398
URL: http://svn.freebsd.org/changeset/base/208398

Log:
  MFC: r197357
  
  Describe how other systems treat this case.

Modified:
  stable/8/tools/regression/usr.bin/sed/multitest.t
Directory Properties:
  stable/8/tools/regression/usr.bin/sed/   (props changed)
  stable/8/tools/regression/usr.bin/sed/regress.multitest.out/   (props changed)

Modified: stable/8/tools/regression/usr.bin/sed/multitest.t
==============================================================================
--- stable/8/tools/regression/usr.bin/sed/multitest.t	Fri May 21 19:21:47 2010	(r208397)
+++ stable/8/tools/regression/usr.bin/sed/multitest.t	Fri May 21 19:22:50 2010	(r208398)
@@ -438,7 +438,11 @@ u2/g' lines1
 	# This is a matter of interpretation
 	# POSIX 1003.1, 2004 says "Within the BRE and the replacement,
 	# the BRE delimiter itself can be used as a *literal* character
-	# if it is preceded by a backslash
+	# if it is preceded by a backslash"
+	# SunOS 5.1 /usr/bin/sed and Mac OS X follow the literal POSIX
+	# interpretation.
+	# GNU sed version 4.1.5 treats \[ as the beginning of a character
+	# set specification (both with --posix and without).
 	mark '8.19' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X['
 	mark '8.20' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X\[['
 }


More information about the svn-src-stable-8 mailing list