Skip to content
Tcl Source Code View Ticket
Login

View Ticket

charset empty match bug

Closed / Fixed1277503fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-08-31 15:13:07
dgp% scan 1foo {%d%[xyz]fo%s}
1 {} {}
[11:07]Cameron checks into the chat.
[11:08]dgp% scan 1foo {%dfo%s}  
1 o
[11:09]dgpdocs say "input field consists of any
number of characters in *chars*"
[11:09]dgpbut apparently "any number" does not
include zero ?
[11:10]suchenwiWell, "1foo" contains {} as any number
of [xyz]...
[11:10]suchenwiwhich is 0
[11:10]dgpyes, and then [scan]ning aborts.
[11:11]suchenwiAh right, the final "o" gets lost.


If this is just a documentation error, suggest
"one or more" rather than "any number".
hobbsplain2005-10-05 10:58:46
Logged In: YES 
user_id=72656

Fixed in docs for 8.5a4.
Log in (anonymous is fine) to add a comment.