On Fri, Mar 13, 2009 at 9:42 AM, Ryan Schmidt <[email protected]> wrote: > I have not used "port list" or "port echo" very often. > > Now that I'm looking at them, I'm confused about echo's behavior. > > I have zlib installed: > > $ port installed zlib > The following ports are currently installed: > zlib @1.2.3_2+universal (active) > > "port list zlib" shows the name, version and category: > > $ port list zlib > zlib @1.2.3 archivers/zlib > > "port echo zlib" shows the name only: > > $ port echo zlib > zlib > > But "port echo installed" shows the name and version, revision and variants: > > $ port echo installed | grep ^zlib > zlib @1.2.3_2+universal > > Why does "echo" behave differently depending on whether zlib was specified > implicitly via the "installed" pseudo-port, or explicitly on the command > line?
Indeed. I'm felt sure that it behaved differently, but maybe that was a preconception. > > I guess what's happening is that "installed" is expanding to not only the > names of the installed ports but also their version, revision and variants, > which I can even fake: > > $ port echo zlib @1.0_0+foo+bar > zlib @1.0_0+bar+foo > > -- Florian Ebeling Twitter: febeling [email protected] _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
