#36354: docbook-utils @ 0.6.14 regex bug ----------------------------+--------------------------------- Reporter: lockhart@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch maintainer Port: docbook-utils | ----------------------------+--------------------------------- Comment (by lockhart@…): Replying to [ticket:36354 lockhart@…]:
The jw script wrapper contains two regex patterns fed to both grep and sed. GNU grep 2.5.1 on Lion did not complain, but Mountain Lion apparently ships BSD grep 2.5.1-FreeBSD and this one complains about it. But in any case the regex seems to be broken on all versions; it uses a character class [:space:] but does not surround it with an extra bracket (e.g. {{{[[:space:]]}}}) and does not call grep with the -E option to allow it to recognize extended patterns. Patch is tested on both Lion and Mountain Lion.
Whoops, didn't escape that second pattern properly. Intended to have: {{{ [[:space:]] }}} -- Ticket URL: <https://trac.macports.org/ticket/36354#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS