Follow-up Comment #6, bug #66438 (group groff): According to the documentation for GNU expr, the : operator uses "a (basic, a la GNU 'grep') regular expression"; a couple paragraphs later, it clarifies:
In the regular expression, '\+', '\?', and '\|' are operators which respectively match one or more, zero or one, or separate alternatives. SunOS and other 'expr''s treat these as regular characters. (POSIX allows either behavior.) If that parenthetical is summarizing POSIX correctly, it's POSIX that's deliberately making such constructions nonportable, badly failing the "P" part of its name on this issue. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66438> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature