CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/07/09 03:43:54
Modified files:
usr.bin/sed : compile.c
Log message:
When using '[' as the delimiter in sed(1) s/// (don't do that, of course)
and then including '[' in the regular expression by prepending a backslash
to it, remove the backslash before feeding the RE to the RE engine, just
like we already do it for other special characters like .^$*+?{(|.
This makes sed 's[\[xy][...[' treat the xy thingy as a char class.
Joint work with martijn@, OK guenther@ martijn@