Opened 12 years ago

Last modified 12 years ago

#36354 closed defect

docbook-utils @ 0.6.14 regex bug — at Initial Version

Reported by: lockhart (Thomas Lockhart) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: haspatch maintainer Cc: ryandesign@…, pixilla@…
Port: docbook-utils

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.