Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4c2a7cc39397bbaca66f6a594e8811e3acce0fdf9179eca70312edc460dff757
Ticket: e38dce74e28420b6c1f44fba604c4ed6193a6391
Command line built with list not properly quoted
User & Date: sebres on 2024-09-20 20:38:01
Changes

  1. icomment:
    Well, it is a bit more complex than one can assume...
    
    For instance, there is [214cc0eb22] for similar invocation but with lappend, however about the difference between compiled and not compiled, just the decision   was exactly vice versa - both <b>shall not switch the string rep</b> of "new" object as result of command.
    
    In my opinion both are the same circumstances and need to be considered in the same manner if the object doesn't change internally:
    <ol>
    <li>either it'd behave the original string representation, no matter which command is used;</li>
    <li>or even by unchanged internals with some list operation it always changes the string representation to canonical form, but then again - no matter which command is used.</li>
    </ol>
    
    The different reaction depending on command makes it just more complex and totally confusing.
    
    New branch bug-e38dce74e2-214cc0eb22-v2 [3d1a4c2dde] is another fix for this (the 2nd variant but for all list-ops), also covering lappend and other commands, and changes behaviour for [214cc0eb22] to 2nd variant too, e.g. as it was in compiled form previously.
    
    Although after all I guess, it must be fixed (in this or that form) for all versions starting with 8.6 in a consequent way.
    
    And finally, I tend more towards variant 1 (no change on object internals == no change on it's string representation, no matter which command).
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"