On 4/18/12 1:15 PM, Danek Duvall wrote:
Philip Brown wrote:

However, now, in the latest solaris 11, (VM image of 11/11) it seems that
the default is to search filename and description.  Sadly, this
"enhancement" is the exact opposite of what I want. But reading the
voluminous manpage, does not seem to say how, or even if, it is possible
to search only by filename any more?
     pkg search path:/usr/bin/ls

or

     pkg search basename:ls

The syntax is discussed in pkg(1), with the search subcommand, but we don't
list the available keys anywhere, to my knowledge.



Oh yikes. There's even more inconsistency for the user: path vs basename searches

If you compare the output of
pkg search basename:pkgrepo
vs
pkg search path:/usr/bin/pkgrepo

Both give the *exact same output*.
Now as a long time systems programmer, I can understand the difference
between "basename" and "path". But even I expect, that if something is indexed completely differently, on supposedly different values.. it should have different
output for the 'value' column.

Worse yet, the output of pkg search path:/usr/bin/pkgrepo

gives VALUE=usr/bin/pkgrepo

but if you actually try searching with that same value it CLAIMS to have...
pkg search path:usr/bin/pkgrepo
get back nothing!
You have to add an initial '/'  to have it work!!

Really, really confusing to a user :(




_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to