Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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: