TC 6.03a Search problem
Moderators: Hacker, petermad, Stefan2, white
TC 6.03a Search problem
I have three files in a directory:
1., "aaa bbb ccc.txt"
2., "ddd eee fff.txt"
3., "abc def ghi.txt"
When I search for *bbb c* in this directory the search result is "No file" instead of "aaa bbb ccc.txt".
When I search for *bbb * in this directory the search result contains all the three files instead of "aaa bbb ccc.txt".
The Search built in Windows XP works properly.
Can anybody explain this?
1., "aaa bbb ccc.txt"
2., "ddd eee fff.txt"
3., "abc def ghi.txt"
When I search for *bbb c* in this directory the search result is "No file" instead of "aaa bbb ccc.txt".
When I search for *bbb * in this directory the search result contains all the three files instead of "aaa bbb ccc.txt".
The Search built in Windows XP works properly.
Can anybody explain this?
Re: TC 6.03a Search problem
@lemicsek
Should the search dialog assume that there are double quotes around the string although you did not enter them? (WinXP obviously does)
Should the search dialog take your string literally as you entered it, i.e. without doubles quotes, i.e. two different search patterns?
And obviously both approaches will yield different search results.
Kind regards,
Karl
Assuming that you entered the strings exactly as you wrote them down in your message, the explanation is like this:When I search for *bbb c* in this directory the search result is "No file" instead of "aaa bbb ccc.txt".
When I search for *bbb * in this directory the search result contains all the three files instead of "aaa bbb ccc.txt".
The Search built in Windows XP works properly.
- your search string=*bbb c*
intertreted by TC as: look for files/dirs named *bbb or c*
but what you want is this: "*bbb c*"
Note the double quotes. They tell TC that it is just one search pattern, not two separate patterns.
- your search string=*bbb *
interpreted by TC as: look for files/dirs named *bbb or *
but what you want is this: "*bbb *"
Note the double quotes. They tell TC that it is just one search pattern, not two separate patterns.
Should the search dialog assume that there are double quotes around the string although you did not enter them? (WinXP obviously does)
Should the search dialog take your string literally as you entered it, i.e. without doubles quotes, i.e. two different search patterns?
And obviously both approaches will yield different search results.
Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
Re: TC 6.03a Search problem
In addittion to karlchen: if yo search for a file contailnig 'bbb' just type 'bbb' instead of '*bbb' or 'bbb* (If there is no space in the search string you can refrain from using the quotation marks) '. It will find "aaa bbb ccc.txt" as desired. Of course it woud find 'bbb ccc.txt' too - wich not is found by '"*bbb"'.lemicsek wrote:I have three files in a directory:
1., "aaa bbb ccc.txt"
2., "ddd eee fff.txt"
3., "abc def ghi.txt"
When I search for *bbb c* in this directory the search result is
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm considering the following solution: I could add a combobox after the search string with the following contents:
"exact match"
"containing"
"any of the names"
"all of the names"
What do you think?
"exact match"
"containing"
"any of the names"
"all of the names"
What do you think?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
What would be brilliant Christian! Please!...ghisler(Author) wrote:I'm considering the following solution: I could add a combobox after the search string with the following contents:
"exact match"
"containing"
"any of the names"
"all of the names"
What do you think?
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
Dont' feed the trollsnorfie wrote:IMO you should ask a psychologist before your behaviour becomes pathological.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2Sheepdog

Here he was right, it's a mix of the suggested:
1. When the string contains no * and not . then TC looks for the string contained in the file name. Example: letter to xyz
2. When the string contains a "." then TC looks for the exact match. Example: file.ext
3. When the string contains a "*" and "." then TC looks for any of the given names. Example: *.doc *.txt
Not everything @norfie writes is a troll posting.norfie wrote:A mix of all - depending of your string?

Here he was right, it's a mix of the suggested:
1. When the string contains no * and not . then TC looks for the string contained in the file name. Example: letter to xyz
2. When the string contains a "." then TC looks for the exact match. Example: file.ext
3. When the string contains a "*" and "." then TC looks for any of the given names. Example: *.doc *.txt
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com