Follow-up Comment #7, bug #66438 (group groff): [comment #6 comment #6:] > 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, Well, what POSIX allows changes over time. My comment #3 was based on a review of POSIX Issue 4 XBD. [https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_03 Issue 8 says this]: Note: A future version of this standard may require "\?", "\+", and "\|" to behave as described for the ERE special characters '?', '+', and '|', respectively. > it's POSIX that's deliberately making such constructions nonportable, badly > failing the "P" part of its name on this issue. I'd say it's more likely FreeBSD's usual inertia and aversion to addressing meat-and-potatoes aspects of the command-line user experience as opposed to glamorous code coups that will score the contributor fabulously lucrative employment, and/or a proud tradition of incompatibility with whatever a GNU counterpart does in the name of high anti-copyleft principle, an attitude that suits Apple down to the ground. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66438> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature