What is the POSIX behavior of the sed
^
and $
anchors when used at the beginning and end of a regex if the pattern space contains embedded newlines, like after you use the N command?
Should they still match the beginning and end of the pattern space or should they match the beginning and end of any line now that it contains multiple lines?
GNU sed
's ^
and $
still match only the beginning and end of the entire pattern space.