How to properly formulate search for a maintainer?

Ryan Schmidt ryandesign at macports.org
Wed Oct 27 14:23:27 PDT 2010


On Oct 27, 2010, at 16:17, Marko Käning wrote:
> On Oct 27, 2010, at 11:14 PM, Jeremy Lavergne wrote:
> 
>> Not sure this counts as a solution:
>> 
>> port info --line maintainer:mk | grep "mk\@"
> No, doesn't count. ;)
> 
> 
>> You'll want to have the pattern also include mk-macports I assume.
> Actually not! :)
> 
> I wanted the perfect match, since there is no @ involved I really wanted only the MacPorts handle "mk" to be found.


port echo 'maintainer:(\W|^)mk(\W|$)'


If you had wanted any permutation of your handle to be found you would use:


port echo '(' 'maintainer:(\W|^)mk-macports at techno.ms(\W|$)' or 'maintainer:(\W|^)techno.ms:mk-macports(\W|$)' or 'maintainer:(\W|^)mk(\W|$)' or 'maintainer:(\W|^)mk at macports.org(\W|$)' or 'maintainer:(\W|^)macports.org:mk(\W|$)' ')'





More information about the macports-dev mailing list