> On Jun 4, 2021, at 11:23 AM, Christopher Jones <jon...@hep.phy.cam.ac.uk> > wrote: > > > >>> On 4 Jun 2021, at 6:16 pm, atmail.dreamhost.com <li...@schamschula.com> >>> wrote: >>> >>> On Jun 4, 2021, 11:55 AM -0500, Christopher Jones >>> <jon...@hep.phy.cam.ac.uk>, wrote: >>> Hi, >>> >>> I want to get a list of all the ports that depend on a given port, boost. I >>> have been using this >>> >>> port echo depends:boost >>> Oh so close: >>> >>> port echo rdepends:boost >> >> no, that has the same issue. >> >> Chris >> >> as per >> >> https://guide.macports.org/chunked/using.common-tasks.html >> to do this, but just noticed it is not just include ports that depend on >> ‘boost’, but ports that depend on any port which has boost in its name. e.g. >> it is incorrectly listing py39-scikit-hep-hist which does not depend on >> boost, but py39-scikit-hep-boost-histogram. >> >> The guide seems to infer the above should only give exact matches, so is >> this a bug in base, or am I mis-understanding ? >> >> cheers Chris >> >> Marius >> __ >> Marius Schamschula >
This exact question came up on IRC a while back. IIRC the query is interpreted as a regular expression. So in order to get matches for only dependents that begin with “boost” you could try port echo depends '^boost' (I’m not at my computer ATM so I can’t test this to verify.) Greg