Opened 21 years ago

Closed 19 years ago

#1385 closed defect (invalid)

BUG: port search + case sensitive

Reported by: julien.touche@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc: fkr@…
Port:

Description

i think it would be better to be case insensitive by default or else provide on option to have it

else: port search portsmanager and port search PortsManager

don't return the same thing for example

Attachments (2)

darwinports.tcl (24.7 KB) - added by tp62@… 21 years ago.
Patch for darwinports/base/src/darwinports1.0/darwinports.tcl
patch-darwinports.tcl (479 bytes) - added by tp62@… 21 years ago.
Patch for darwinports/base/src/darwinports1.0/darwinports.tcl

Download all attachments as: .zip

Change History (11)

Changed 21 years ago by tp62@…

Attachment: darwinports.tcl added

Patch for darwinports/base/src/darwinports1.0/darwinports.tcl

Changed 21 years ago by tp62@…

Attachment: patch-darwinports.tcl added

Patch for darwinports/base/src/darwinports1.0/darwinports.tcl

comment:1 Changed 21 years ago by tp62@…

attachments.isobsolete: 01

comment:2 Changed 21 years ago by jkh@…

Owner: changed from darwinports-bugs@… to jkh@…

comment:3 Changed 21 years ago by fkr@…

we started discussing case-insensitiy on the list a while ago (don't know wether this was before or after the archives broke). Personally I believe, we should support case-insensitivty from port(1) in general:

port install texshop would actually go and instal TeXShop.

How about if we go and try to implement the whole way and make sure it works case-insensitive everywhere?

comment:4 Changed 21 years ago by pguyot (Paul Guyot)

Component: dportsbase

comment:5 Changed 21 years ago by fkr@…

Cc: fkr@… added

your attachement is no diff :) anywaysm, the change you propose got proposed by me on darwinports@ about 1 1/2 months ago. This way dportsearch can not be exact anymore (since it would return PortsManager and portsmanager, even though these could potentionally be something different).

If we want to support case-insensitiveness (which I do think, would be cool) we need to add it in a way, without making dportsearch incapable of being exact.

I'm currently re-thinking dportsearch as a whole and am trying to re-work it to allow other features as well. I should have a patch in the next days.

-fkr

comment:6 Changed 21 years ago by wbb4@…

Why do we want everything to be insensitive? I think port search being insensitive is useful since you are searching for something, but I don't understand why targets need to be case-insensitive, and I don't really like it... you should know what you're looking for.

comment:7 Changed 21 years ago by julien.touche@…

as far as i'm concerned, case insensitivity is interesting for search (or related if any), not for others targets and at no cost for installing & co. goal is to be have better search option (could be more like a search by maintainers or in description but not the subject)

could be (and would be better) if it is an option (like landon said on darwinports@)

comment:8 Changed 21 years ago by jkh@…

Owner: changed from jkh@… to landonf@…

comment:9 Changed 19 years ago by landonf@…

Resolution: invalid
Status: newclosed

Searching is now case sensitive.

Note: See TracTickets for help on using tickets.