Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-11-25
02:01 • Add attachment 848262.patch to ticket [848262ffff] artifact: 4d571134be user: dgp
02:01 • Closed ticket [848262ffff]: minor bug in new {expand}-parsing plus 7 other c... artifact: b89c835d94 user: dgp
2003-11-24
22:59 • Ticket [848262ffff]: 2 changes artifact: b253cb629a user: msofer
20:07 • Ticket [848262ffff]: 4 changes artifact: b249e317de user: avl42
19:57 • Ticket [848262ffff]: 1 change artifact: ebe7486191 user: avl42
12:56 • New ticket [848262ffff]. artifact: a9856faab5 user: avl42

minor bug in new {expand}-parsing

Closed / Fixed848262ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-11-24 12:56:33
there are a few cases, where {expand}  *without* trailer is 
misinterpreted to expand to nothing:

in interactive tclsh8.5 shell:
% list {expand}
% list {expand};
% if 1 {list {expand};}
%
(all return the empty string, instead of the string "expand")

However
% if 1 {list {expand}}
expand
%
works correctly.

It looks like the code that checks the next character after 
the {expand} deals with too few cases.
avl42 Ticket [848262ffff]: 1 change [History diff]2003-11-24 19:57:13
avl42plain2003-11-24 20:07:32
Logged In: YES 
user_id=830354

another failing case (also in interactive shell):
% list {expand}\
      whatever else
whatever else
%
(since \-newline-anywhitespace should be treated as one single
whitespace, the {expand}-semantics shouldn't trigger.

This might be more difficult to fix  than the previous cases :-(
msofer Ticket [848262ffff]: 2 changes [History diff]2003-11-24 22:59:06
dgpplain2003-11-25 02:01:09
File Added - 68561: 848262.patch

Logged In: YES 
user_id=80530


Attached patch fixes bug
and adds tests.

Committing to HEAD...
Log in (anonymous is fine) to add a comment.

Attachments: