Hello,
- it is not specified whether address selections following a commandact on unchanged input lines [...] or on the lines as changed by the previous command
I've clarified this point in sed's manual and man-page: https://git.savannah.gnu.org/cgit/sed.git/commit/?id=de6b6ccd7400b6483ecee5eebc7d48666b497680 regards, - assaf