TC 6.03a Search problem

English support forum

Moderators: white, Hacker, petermad, Stefan2

lemicsek
Junior Member
Junior Member
Posts: 2
Joined: 2004-08-22, 20:36 UTC

TC 6.03a Search problem

Post by *lemicsek »

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?
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-11, 12:49 UTC, edited 1 time in total.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Re: TC 6.03a Search problem

Post by *karlchen »

@lemicsek
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.
Assuming that you entered the strings exactly as you wrote them down in your message, the explanation is like this:
  • 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.
Well, if you say that the search in WinXP works correctly, hm, this is a question of how you look at things:
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 10.52 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
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: TC 6.03a Search problem

Post by *Sheepdog »

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
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"'.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48113
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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?
Author of Total Commander
https://www.ghisler.com
lemicsek
Junior Member
Junior Member
Posts: 2
Joined: 2004-08-22, 20:36 UTC

Post by *lemicsek »

I think it would be great and unambiguous.
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

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?
What would be brilliant Christian! Please!...
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
User avatar
Hacker
Moderator
Moderator
Posts: 13073
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

And what choice of those offered would be the one we're using today? (I like current behavior but I am not against a combobox...)

TIA
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
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-11, 12:48 UTC, edited 1 time in total.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

norfie wrote: A mix of all - depending of your string?
I'm too.
Don't feed the troll

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-11, 12:47 UTC, edited 1 time in total.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

norfie wrote:IMO you should ask a psychologist before your behaviour becomes pathological.
Dont' feed the trolls

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-11, 12:46 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48113
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Sheepdog
norfie wrote:A mix of all - depending of your string?
Not everything @norfie writes is a troll posting. :)
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
User avatar
Hacker
Moderator
Moderator
Posts: 13073
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Let me repeat my question - would the current behavior remain default/optional ?

TIA
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.
Post Reply