[TC 11.51] Search: semicolon in first quoted string acts as separator when it shouldn't

Moderators: petermad, Stefan2, white, Hacker

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

[TC 11.51] Search: semicolon in first quoted string acts as separator when it shouldn't

Post by *white »

Issue: When searching for files, a semicolon in the first quoted string sometimes acts as separator when it shouldn't.
I think it is not documented but a semicolon in a searchstring acts the same way as a space, but with the issue described below.
This issue isn't new for TC 11.51 but exists for a long time in TC.

Create 2 files with the following filenames:
A;B.txt
C;D.txt

Search for:

Code: Select all

"A;B.txt";"C;D.txt"
The semicolon in the first quoted part acts as a separator, so files "A", "B.TXT" and "C;D.txt" are found.
But if the entire search string contains a space character anywhere (as separator or as part of a filename), the issue doesn't occur.
And the issue only happens for the fist quoted string that starts at the beginning, so the following example doesn't have the issue:

Code: Select all

Q.TXT;"A;B.txt";"C;D.txt"
User avatar
petermad
Power Member
Power Member
Posts: 15917
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.51] Search: semicolon in first quoted string acts as separator when it shouldn't

Post by *petermad »

Confirmed as described.
License #524 (1994)
Danish Total Commander Translator
TC 11.51rc2 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1390a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply