Date: Sun, 20 Sep 2009 14:20:01 +0000 (UTC) From: Diomidis Spinellis <dds@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197357 - head/tools/regression/usr.bin/sed Message-ID: <200909201420.n8KEK18r059100@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dds Date: Sun Sep 20 14:20:00 2009 New Revision: 197357 URL: http://svn.freebsd.org/changeset/base/197357 Log: Describe how other systems treat this case. Modified: head/tools/regression/usr.bin/sed/multitest.t Modified: head/tools/regression/usr.bin/sed/multitest.t ============================================================================== --- head/tools/regression/usr.bin/sed/multitest.t Sun Sep 20 14:11:33 2009 (r197356) +++ head/tools/regression/usr.bin/sed/multitest.t Sun Sep 20 14:20:00 2009 (r197357) @@ -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\[[' }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909201420.n8KEK18r059100>