Menu

#488 scan command %[] behaviour changed

obsolete: 8.3b1
closed-fixed
nobody
23. [scan] (15)
2
2001-04-05
2000-10-26
Anonymous
No

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

Discussion

  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter

    Don Porter - 2001-04-05
    • labels: 104238 --> 23. [scan]
     
MongoDB Logo MongoDB