Code: Select all
\
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
\
Like I said: "search for all files, do not search in subfolders". The search text contains an empty mask for searching files/folders, which in Total Commander means *.*, and an empty include only traverse folder "\". So traverse only the folder with an empty nameghisler(Author) wrote: 2024-07-08, 13:58 UTC Sorry, I do not understand your report. What are you trying to achieve?
Correctamundo. The results should be the same as when using no spaces or 1 trailing space.petermad wrote: 2024-07-08, 14:18 UTC I think White expects expects all leading or trailing spaces to be ignored.
Code: Select all
\ *.*
Correct, that is what I am addressing. The issue isn't limited to only using a single "\" with one or more spaces. The same applies to searching for, for example, "dir\" when you have a folder called "dir".
Code: Select all
dir\
This is working this way since version TC 11.00b7 (nothing relevant in HISTORY.TXT AFAIK).
Code: Select all
| dir\
1) You act like it's weird to enter nothing if you want to search for all files/folders. But it has been this way since at least Windows Commander 3.03 (I checked). And I don't think it's an accident that searching for "dir\" or "|*.bak" assumes * as the file/folder mask.ghisler(Author) wrote: 2024-07-10, 17:14 UTC Please use
*.* \
to find all files and subfolders in the current directory, but nothing in subdirs.
\
alone isn't defined, it also finds nothing with Everything, while *.* \ does.
I'm sorry but I will not try to detect all possible invalid or undocumented search strings and show errors when I encounter them. I would be doing only that for the next 10 years.
No, it only finds folders in 'Everything' and TC (ev:\).ghisler(Author) wrote: 2024-07-10, 17:14 UTC \
alone isn't defined, it also finds nothing with Everything, ...
No.white wrote: 2024-07-08, 17:19 UTC The results should be the same as when using no spaces or 1 trailing space.
No.white wrote: 2024-07-10, 18:53 UTC 2) *.* stems from the MS-DOS era and is also not documented. Nowadays it makes more sense to talk about using *.
I agree. Spaces should only be recognized as such if they are quoted.white wrote: 2024-07-08, 17:19 UTC The results should be the same as when using no spaces or 1 trailing space.
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)