|
2001-04-19
| ||
| 02:36 | • Ticket [218249ffff] the string trimleft, trim commands don't work correctly.... artifact: 1f3e14d93b user: dgp | |
|
2000-10-26
| ||
| 08:17 | • Closed ticket [218249ffff]. artifact: 61bee7ea3d user: welch | |
| 00:55 | • New ticket [218249ffff]. artifact: a4debf8201 user: nobody | |
the string trimleft, trim commands don't work correctly.
Closed / Invalid218249ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:02
OriginalBugID: 2833 Bug
Version: 8.2
SubmitDate: '1999-09-20'
LastModified: '1999-09-20'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 95
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-09-20'
Name:
jeff bandur
ReproducibleScript:
the following can be typed into the console.
example 1
set var1 .listboxtrade
string trimleft $var1 .listbox
the answer should be 'trade'
I get 'rade' returned
example 2
set var2 .listboxaddress
string trim $var2 .listbox
the correct answer should be 'address'
I get 'addre' returned
This is user error. This is the defined behavior of string trim,
which trims every instance of the given chars. The user wants
either 'regsub' or 'string map'.
-- 09/20/1999 hobbs
welch Closed ticket [218249ffff].
[History diff]2000-10-26 08:17:55
dgp Ticket [218249ffff]: 4 changes
[History diff]2001-04-19 02:36:11
Log in (anonymous is fine) to add a comment.