Deprecating port list

Andre Stechert stechert at macports.org
Thu Mar 12 10:36:15 PDT 2009


***a student becomes enlightened***

I previously thought "port echo" was just a loopback/diagnostic
because if I do "port echo asdfjk" I get "asdfjk".

Thanks!
Andre

On Thu, Mar 12, 2009 at 10:24 AM, Rainer Müller <raimue at macports.org> wrote:
> Andre Stechert wrote:
>> port list | wc -l
>>     answers the question "how many ports does macports have nowadays?
>> we catching up to freebsd yet?"
>
> port echo all | wc -l
> port search '*' | tail -1
>
>> port list | grep ...
>>     answers the question "is /re/ a port?" without requiring me to
>> understand port search's syntax and/or limitations compared to regular
>> old grep.
>>
>> port list | awk ...
>>     allows me to perform arbitrary shell operations against the entire
>> set of possible ports for cleanup, statistics, or whatever.
>
> port echo all | grep ...
> port echo all | awk ...
>
> Maybe it would be useful to make list an alias to echo?
>
> A command like
>  port info --line --name --version ... all
> allows even more by selecting the field you want to view.
>
> Rainer
>


More information about the macports-dev mailing list