scan command %[] behaviour changed
Closed / Fixed218333ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:21
OriginalBugID: 3944 Bug
Version: 8.3b1
SubmitDate: '1999-12-27'
LastModified: '2000-01-03'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 98
FixedDate: '2000-10-25'
ClosedDate: '2000-01-03'
Name:
Tim Baker
ReproducibleScript:
Under tclsh83:
% set s {""}
""
% scan $s {"%[^"]"} t
0
ObservedBehavior:
The %[] format specifier should match 0 or more characters from the set. Under Tcl 8.3b1 it only matches 1 or more.
DesiredBehavior:
Under tclsh82:
% set s {""}
""
% scan $s {"%[^""]} t
1
This is the correct behavior, it was actually 8.2- that had
the non-scanf style behavior. This should have been better
noted in the ChangeLog.
-- 01/03/2000 hobbs
welch Closed ticket [218333ffff].
[History diff]2000-10-26 08:20:06
dgp Ticket [218333ffff]: 3 changes
[History diff]2001-04-05 07:21:59
Log in (anonymous is fine) to add a comment.