Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-02-06
08:02 • Closed ticket [2544618fff]: interp cancel hard limit on switches plus 7 ot... artifact: 8d08f77050 user: mistachkin
08:02 • Ticket [2544618fff]: 4 changes artifact: a2077543e9 user: mistachkin
2009-01-29
11:55 • Add attachment interp_cancel.zip to ticket [2544618fffffffff|2544618fff... artifact: 66837be452 user: mistachkin
11:55 • Ticket [2544618fff] interp cancel hard limit on switches status still Open... artifact: 670f3be90d user: mistachkin
11:27 • Ticket [2544618fff]: 4 changes artifact: e47e5c180b user: dgp
04:17 • New ticket [2544618fff]. artifact: 97df3a5a73 user: dgp

[interp cancel] hard limit on switches

Closed / Fixed2544618fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-01-29 04:17:26
Possibly this isn't a bug, but I think
the usual practice when a command has
switches and uses "--" to mark their end
is for any number of them to be permitted,
including redundant repeats.  However
[interp cancel] enforces a hard max of
4 arguments.

% interp cancel -unwind -unwind -unwind -unwind --
wrong # args: should be "interp cancel ?-unwind? ?--? ?path? ?result?"
% interp cancel -unwind -unwind -unwind -unwind
eval unwound
dgpplain2009-01-29 11:27:40
Appears that excess args following
$path and $result are not checked for either.
mistachkinplain2009-01-29 11:55:08
File Added - 311077: interp_cancel.zip

This patch should fix both issues.

File Added: interp_cancel.zip
mistachkinplain2009-02-06 08:02:17
Patch committed to HEAD.
mistachkinplain2009-02-06 08:02:21
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: