[snip]
On 04/19/12 20:40, Philip Brown wrote:

Problem is, this not consistent design, at least from a user point of view.
From a programmer's point of view sure, but not a users.
Interestingly, you cut your quote of the documentaiton off right at the most relevant part to this issue.

Yes there is this documented syntax of
pkg search ww:xx:yy:zz

BUT, it is also documented in the bit you _cut off_ :p that pkg search is supposed to "implicitly wildcard" missing fields.

Brock's explanation of, "[well, you have to explicitly provide a missing field, and then it works]", ie

pkg search :file::vim

conflicts with that documented principle, and the working examples with basename
and path.

if "pkg search" is "Intelligent" enough to auto-expand

basename:vim   => ::basename:vim

it should be just as equally capable of auto-expanding

file:vim  => :file::vim

I was going to respond to this, but Danek covered it much more clearly than I was going to.

To not do so, may justify some pretty Backus-Naur grammar definition, but it is
horrible real world user interface!

On 4/18/12 2:39 PM, Brock Pytlik wrote:
If we ever decide that search needs a large rework from the ground up, the ui would likely get changed. It was based on the dtrace syntax, which has not been as friendly as we'd hoped.

Well that explains... a lot :-/
Never a good idea to take a *programmer* interface, and abuse it as an end-user
interface :(

The dtrace command line isn't exactly a programmer interface. I do agree, as I've said multiple times already, that it probably wasn't the ideal choice. I don't know what other response you're looking for. The search UI simply isn't a priority at this time. I hope it will be at some point because it will mean we've succeeded at a number of other things.

But anyways, you might at least make the simple improvement above that I mentioned. Even if you have to explicit-special-case it in the code. Then from a users point of view, it then becomes a much more sensibly behaving tool.

Which improvement do you mean? The one about the initial slash? I will certainly file an RFE for your suggestion.

Brock



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

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

Reply via email to