Re: funny results with 'port list inactive'
Bryan Blackburn <[email protected]> Thu, 24 Aug 2006 00:11:44 -0600
| Newsgroups | gmane.os.opendarwin.darwinports |
|---|---|
| Message-ID | <[email protected]> |
On Aug 23, 2006, at 8:08 AM, James Berry wrote: > > On Aug 22, 2006, at 11:51 PM, Bryan Blackburn wrote: > >> On Aug 22, 2006, at 10:34 PM, Wojciech Grzemski wrote: >> >>> Hello, >>> >>> I was in the process of upgrading my ports collection, when I've >>> noticed that: >>> $ port list inactive | wc -l >>> 3481 >>> $ port list | wc -l >>> 3481 >>> >>> Is this to be expected? Knowing that I have no inactive ports I >>> would >>> prefer to have output similar to the one given by 'port outdated'. >>> > > The pseudo portnames basically expand to a list of ports. By saying > "port list inactive" you are effectively passing each port on the > command line to list, which is giving you output for each. The > command has no opportunity to look at the request from a high level > and say "well, duh, there are no inactive ports. > Ah, so in this case, 'port list inactive' logically became just 'port list' since the inactive part ended up empty? >> Note that the list command (from the man page) will "List all >> available ports" so any arguments to it are most likely >> superfluous, by my reading. I think you want things like 'port >> installed' and perhaps 'port installed inactive' (but since I >> don't use port images, I can't test if this works). > > Yes, sortof. But list will provide output about any specific ports > that you name for it. In the case of "port list apache2", it would > give list-style output about apache2. In the case of "port list > all" it will separately give output about each port. Note that > "port list" is a more efficient way to do the later, as it requires > much less processing by port. > Then perhaps the man page should, for the 'list' target, say 'List ports which match the given port or pseudo-port, or all ports when no arguments given. If given a pseudo-port, expands it prior to listing, which could result in ALL ports being shown when the pseudo- port evaluates to no ports.' since this handling is kinda confusing? Though my new wording is somewhat confusing as well... Bryan [timing stuff elided] >> >> >>> All the best, >>> >>> -- >>> Wojciech Grzemski <[email protected]> "On Margate >>> Sands..." >>> >>> >> >