Further incompatibilities with BSD sed

  1. BSD sed does not support the escaped alternation symbol, i.e. \|, but only the unescaped version, i.e. |, with the -E flag (some time in between MacOS 10.15.5 and MacOS 12.3.1, the alternative -r flag got the support as well). In particular, this affects:

  2. BSD sed does not support the word boundary sequence \b. In particular, this affects:

    It looks like we could replace \b with the end of a word sequence in the two cases above. The only problem is that the end of the word sequence is /> for GNU sed and [[:>:]] for BSD sed.

I have not checked whether there are more lines in the code affected by these problems.