[TC 11.03] Searching using terms like *\*\ in the search text, gives unexpected results

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.03] Searching using terms like *\*\ in the search text, gives unexpected results

Post by *white »

Searching using terms like *\*\ in the search text, gives unexpected results.

Total number of files/folders in my test folder: 86 files, 21 folders

Searching with specified search depth:

Code: Select all

current dir  : 19 files, 11 folders
level 1      : 33 files, 18 folders
level 2      : 71 files, 21 folders
level 3      : 86 files, 21 folders
Search using search text and "Search in subdirectories" set to "unlimited depth":

Code: Select all

|\*\         : 19 files, 11 folders    (current dir search)
|\*\*\       : 19 files, 11 folders    (level 1 search)  wrong results
|\*\*\*\     : 71 files, 21 folders    (level 2 search)
|\*\*\*\*\   : 86 files, 21 folders    (level 3 search)

|*\          : 19 files, 11 folders    (current dir search)
|*\*\        : 19 files, 11 folders    (level 1 search)  wrong results
|*\*\*\      : 71 files, 21 folders    (level 2 search)
|*\*\*\*\    : 86 files, 21 folders    (level 3 search)

Code: Select all

\            : 19 files, 11 folders    (current dir search)
\*\          : 33 files, 18 folders    (level 1 search)
\*\*\        : 71 files, 21 folders    (level 2 search)
\*\*\*\      : 19 files, 11 folders    (level 3 search)  wrong results
Searching with relative include only traverse filter:

Code: Select all

*\           : 86 files, 21 folders
*\*\         : 86 files, 21 folders
*\*\*\       : 19 files, 11 folders    (expected: 86 files, 21 folders)
*\*\*\*\     : 19 files, 11 folders    (expected: 86 files, 21 folders)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Searching using terms like *\*\ in the search text, gives unexpected results

Post by *ghisler(Author) »

Sorry, I don't understand what you are trying to achieve with this. Can describe more in detail what is found which shouldn't be found, or vice versa?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.03] Searching using terms like *\*\ in the search text, gives unexpected results

Post by *white »

At the top you see the results I get when I search my test folder for all files/folders with "Search in subdirectories" set to current dir only, level 1, level 2 and level 3 respectively.

Then I tried to do the same in other ways. I set "Search in subdirectories" to "unlimited depth" and used exclude traverse folder masks. That's the second code block. At the left you see the search string I used and after that the results I got. It works, except for searching with a 1 level search depth (by excluding traversing all level 2 folders).

The 3rd code block is when using include only traverse folder masks. It seems like you implemented it in a way that this works too. Except when trying a level 3 search.

Then I tried the same search texts again, but without leading backslashes. The way you implemented it, I expected the results to be always all files/folders. But that is not the case.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Searching using terms like *\*\ in the search text, gives unexpected results

Post by *ghisler(Author) »

This has been enhanced in Total Commander 11.50 beta 1, please try it!
18.07.24 Added: Search for *.ext test1\test2\ (no backslash at the beginning) will now find files *.ext in directory test1\test2 (in addition to current directory) any levels deep, e.g. c:\startdir\test3\test4\test1\test2\somefile.ext (32/64)
15.07.24 Fixed: Searching for \*\*\ will now find files in the current directory plus those two levels deeper (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5744
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.03] Searching using terms like *\*\ in the search text, gives unexpected results

Post by *white »

The given examples using an exclude mask now work.
The given examples using an include mask now also work for the way it is implemented now. There are still issues with it, but I'll discuss them in the other thread here.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Searching using terms like *\*\ in the search text, gives unexpected results

Post by *ghisler(Author) »

Thanks, I will check your other thread.

Moderator message

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply