Describe how other systems treat this case.

This commit is contained in:
Diomidis Spinellis 2009-09-20 14:20:00 +00:00
parent 128e6a12b5
commit e00741e355
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197357

View File

@ -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\[['
}