Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 99c9c5f4356419ae9d57bc765cd6925ae56b1225e539e42ccaf419e12eccf4a6
Ticket: d07f42998da94cfe0c9cebc73c5cecc63f99f421
Tcl_CreateObjCommand2 argument truncation and misleading error message
User & Date: jan.nijtmans on 2023-05-09 16:48:56
Changes

  1. closer changed to: "nobody"
  2. icomment:
    Trying now:
    <pre>
    % set cmd [testbigdata list 0x80000008]; llength $cmd
    2147483656
    % ledit cmd 0 1 lappend X ; llength $cmd
    2147483656
    % testcmdinfo call $cmd
    wrong # args: should be "lappend varName ?value ...?"
    % testcmdinfo call2 $cmd
    Number of words (2147483656) in command exceeds limit 2147483647.
    % eval $cmd
    wrong # args: should be "lappend varName ?value ...?"
    </pre>
    
    So "lappend" cannot handle so many arguments. But why do the error-messages differ between "call" and "call2"? Isn't "eval" the same as "testcmdinfo call"? I still see the old error-message there
    
  3. login: "jan.nijtmans"
  4. mimetype: "text/x-fossil-wiki"
  5. resolution changed to: "None"
  6. status changed to: "Open"