Search for files with dot

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

Post Reply
Thany
Senior Member
Senior Member
Posts: 244
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Search for files with dot

Post by *Thany » 2019-02-08, 08:49 UTC

I could be wrong, but when the Find Files feature sees a dot in the thing you search for, it becomes unrealiable.

When I search for asp.net files (no quotes) starting in C:\Windows, it does find C:\Windows\INF\ASP.NET (which doesn't match), but it doesn't find C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files (which does match).

Isn't that strange? I've never had anything like this, so I suspect the dot has a magical effect on searching. But that doesn't make sense to me. Can anyone clear this up?

I'm on TC 9.21a, Windows 10.

User avatar
Stefan2
Power Member
Power Member
Posts: 2356
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Search for files with dot > will look for the exact name match

Post by *Stefan2 » 2019-02-08, 09:18 UTC

Search dialog >>> F1 / [Help]
Search for:
Multiple search masks can be entered, separated by spaces (see examples below).
When the search string contains a dot, Total Commander will look for the exact name match.

So I think >asp.net files<
will look for >asp.net< exact name AND for something with >files< in name?


Perhaps try using >*asp.net?files<



 

Thany
Senior Member
Senior Member
Posts: 244
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Re: Search for files with dot

Post by *Thany » 2019-02-20, 08:48 UTC

I'm curious to what it was actually trying to match.

It is neither an AND search, nor an OR search. In either case I would've been able to find "Temporary ASP.NET Files".

Also, "When the search string contains a dot" which it did, then "Total Commander will look for the exact name match" is clearly not true. So then either the help is inaccurate, or there's a bug in the search algorithm.

User avatar
Hacker
Moderator
Moderator
Posts: 11155
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Search for files with dot

Post by *Hacker » 2019-02-20, 17:53 UTC

Thany,
I'm curious to what it was actually trying to match.
Exact matches for "asp.net" and "files". Space is considered a delimiter between exact filenames.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

User avatar
petermad
Power Member
Power Member
Posts: 8201
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Search for files with dot

Post by *petermad » 2019-02-22, 18:06 UTC

Just search for: *asp.net files
Or for: "*asp.net files" if you don't want for example C:\Windows\INF\ASP.NET to be found as well
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.92b1 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

Thany
Senior Member
Senior Member
Posts: 244
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Re: Search for files with dot

Post by *Thany » 2019-02-27, 08:39 UTC

Why can it then not search for (without the quotes), filenames containing "asp.net", filenames containing "files", and filenames containing "asp.net files"? Where the latter would be closer to the top of the list because it's a more exact match than the others.

Not search *at all* for "asp.net files" (without the quotes) when that's exactly what I type, is just wrong.

And why would I put an asterisk in front? If that works (not tested) it would introduce another bug: it would change the meaning of the space character magically. That would also be wrong.

User avatar
petermad
Power Member
Power Member
Posts: 8201
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Search for files with dot

Post by *petermad » 2019-02-27, 10:21 UTC

And why would I put an asterisk in front?
Because the directory you want to find is: "Temporary ASP.NET Files" not "ASP.NET Files" - if there is a dot in the name TC searches for exactly what is written - putting an asterisk in front expands the search to everything that has "ASP.NET Files" in the end of the name.
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.92b1 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
Usher
Senior Member
Senior Member
Posts: 272
Joined: 2011-03-11, 10:11 UTC

Re: Search for files with dot

Post by *Usher » 2019-02-27, 13:52 UTC

Maybe it's not clear enough. I think it should be added something like that:
You are free to use free format search for a string before the first dot in a name. Otherwise you are allowed only to use strict search or explicit wildcards.
Regards from Poland
Andrzej P. Wozniak

Post Reply