Bug reports will be moved here when the described bug has been fixed
Moderators: Hacker , petermad , Stefan2 , white
white
Power Member
Posts: 5744 Joined: 2003-11-19, 08:16 UTC
Location: Netherlands
Post
by *white » 2024-07-07, 22:07 UTC
Search for files with name "a" or "b", do not search in subfolders:
Search for all files, do not search in subfolders:
Search for all files, do not search in subfolders:
The last search text, containing 1 or more leading spaces, is not working.
ghisler(Author)
Site Admin
Posts: 50390 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2024-07-08, 13:56 UTC
You need to put names with spaces in double quotes, e.g.
*.* | " *\"
petermad
Power Member
Posts: 15997 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2024-07-08, 14:19 UTC
2ghisler(Author)
I think White expects expects all leading or trailing spaces to be ignored if there are no quotes
white
Power Member
Posts: 5744 Joined: 2003-11-19, 08:16 UTC
Location: Netherlands
Post
by *white » 2024-07-08, 16:56 UTC
ghisler(Author) wrote: 2024-07-08, 13:56 UTC
You need to put names with spaces in double quotes, e.g.
*.* | " *\"
LOL, that's excluding traversing folders starting with a space. As I said I wanted to: "Search for all files, do not search in subfolders".
petermad wrote: 2024-07-08, 14:19 UTC
I think White expects expects all leading or trailing spaces to be ignored if there are no quotes
Exactly, the last 2 code blocks should do the same.
jonathanpoulin
Member
Posts: 131 Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:
Post
by *jonathanpoulin » 2024-07-11, 15:09 UTC
If I can add to this topic...
Maybe it would help solving potential bugs.
Here are some use cases I tested:
Empty mask (i.e. blank Search field):
Should returns all files/directories (working)
Empty (two double-quotes) mask:
Should returns all files/directories as well (working)
Empty mask with empty exclude mask (i.e. pipe character in Search field):
Should returns all files/directories as well (NOT working)
Empty (two double-quotes) mask with empty exclude mask:
Should returns all files/directories as well (NOT working)
Empty (two double-quotes) mask with empty (two double-quotes) exclude mask:
Should returns all files/directories as well (NOT working)
Empty (as spaces) mask with empty exclude mask:
Should returns all files/directories as well (NOT working)
Empty (as spaces) mask with empty (as spaces) exclude mask:
Should returns all files/directories as well (NOT working)
Thanks,
Jonathan Poulin
white
Power Member
Posts: 5744 Joined: 2003-11-19, 08:16 UTC
Location: Netherlands
Post
by *white » 2024-07-11, 15:37 UTC
jonathanpoulin wrote: 2024-07-11, 15:09 UTC
Here are some use cases I tested:
A pipe symbol doesn't change the search mode, so in this case the pipe is interpreted literally and not as a separator for an exclude section. Take a look at the example "Smith | txt" here:
https://www.ghisler.ch/wiki/index.php?title=Search .
JOUBE
Power Member
Posts: 1664 Joined: 2004-07-08, 08:58 UTC
Post
by *JOUBE » 2024-07-11, 19:54 UTC
white wrote: 2024-07-08, 16:56 UTC
ghisler(Author) wrote: 2024-07-08, 13:56 UTC
You need to put names with spaces in double quotes, e.g.
*.* | " *\"
LOL, that's excluding traversing folders starting with a space. As I said I wanted to: "Search for all files, do not search in subfolders".
It's OK as it is implemented now and doesn't need to be changed. So there's no reason to ridicule it.
Jou"That's only happened over the years on the forum when regulars got impatient and so on."be
jonathanpoulin
Member
Posts: 131 Joined: 2020-12-19, 12:09 UTC
Location: Saint-Marc-des-Carrières, QC Canada
Contact:
Post
by *jonathanpoulin » 2024-07-12, 13:45 UTC
white wrote: 2024-07-11, 15:37 UTC
jonathanpoulin wrote: 2024-07-11, 15:09 UTC
Here are some use cases I tested:
A pipe symbol doesn't change the search mode, so in this case the pipe is interpreted literally and not as a separator for an exclude section. Take a look at the example "Smith | txt" here:
https://www.ghisler.ch/wiki/index.php?title=Search .
Ahh, ok I see. Sorry. I think I will keep the wiki open for a while! lol!
Shouldn't we adjust the .chm file with the wiki infos then?
So, my bullet points 3 to 7 of my previous post are invalid assumptions. That is okay the way it is implemented right now. Good!
Thanks,
Jonathan Poulin
ghisler(Author)
Site Admin
Posts: 50390 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2024-10-09, 14:03 UTC
This should be fixed in Total Commander 11.50 beta 1, please check it!
17.07.24 Fixed: Find files: Ignore any leading and trailing spaces in wildcard searches except when they are in double quotes, e.g. *.txt *.docx now needs to be "*.txt " *.docx (32/64)
white
Power Member
Posts: 5744 Joined: 2003-11-19, 08:16 UTC
Location: Netherlands
Post
by *white » 2024-10-09, 23:57 UTC
ghisler(Author) wrote: 2024-10-09, 14:03 UTC
This should be fixed in Total Commander 11.50 beta 1, please check it!
Tested OK using TC 11.50b1 32-bit and 64-bit.
ghisler(Author) wrote: 2024-10-09, 14:03 UTC
17.07.24 Fixed: Find files: Ignore any leading and trailing spaces in wildcard searches except when they are in double quotes, e.g. *.txt *.docx now needs to be "*.txt " *.docx (32/64)
The code:
already did not work to find files with extension ".txt " (with trailing space), so your bug fix description is wrong. Spaces were already ignored, but not in all circumstances.
white
Power Member
Posts: 5744 Joined: 2003-11-19, 08:16 UTC
Location: Netherlands
Post
by *white » 2024-10-10, 13:29 UTC
ghisler(Author) wrote: 2024-10-10, 08:27 UTC
What description would you suggest?
Perhaps this:
17.07.24 Fixed: Find files: Spaces were not always ignored in wildcard searches when they were not in between double quotes (32/64)
ghisler(Author)
Site Admin
Posts: 50390 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2024-10-16, 13:04 UTC
I have updated the description in 11.50 beta 2, please check!
white
Power Member
Posts: 5744 Joined: 2003-11-19, 08:16 UTC
Location: Netherlands
Post
by *white » 2024-10-16, 14:45 UTC
ghisler(Author) wrote: 2024-10-16, 13:04 UTC
I have updated the description in 11.50 beta 2, please check!
Confirmed.
Moderator message from: white » 2024-10-16, 14:45 UTC
Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs