Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[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: