Skip to content
Tcl Source Code History Of Ticket de7f92b65af279c0
Login

History Of Ticket de7f92b65af279c0

Artifacts Associated With Ticket de7f92b65af279c0

  1. Ticket change [b0d2faaa6b] (rid 148045) by ekd123 on 2016-07-15 09:59:00:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      set yf1 "14-11-03 14-18-27: 88 13 03 05 00 00 5A"
      set sen "78 78"
      set z "16-07-14 12-15-20"
      set str1 [string replace $[string replace $yf1 0 16 $z] 31 35 $sen] ;# oops; $[ is unnecessary
      puts $str1
      
      This code doesn't work because there's an unnecessary $, but an error is expected to be given rather than crash.
      
      OS: Windows 10 x64
      
    5. foundin initialized to: "8.6.4"
    6. is_private initialized to: "0"
    7. login: "ekd123"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0e41b4ccde994ffd1ec98da29689939312903f84"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "ekd123"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "variable substitution causes crashes"
    16. type initialized to: "Bug"
  2. Ticket change [69887020bc] (rid 148046) by sebres on 2016-07-15 10:24:59:

    1. closedate changed to: "2457584.93401784"
    2. closer changed to: "sebres"
    3. icomment:
      > but an error is expected to be given rather than crash.
      
      That is almost impossible, because it is expected behavior - how tcl substitution works.
      
      See example bellow:
      
        % puts $[list this is a command execution]$
        $this is a command execution$
      
        % puts -[list this is a command execution]-
        -this is a command execution-
      
      In this case "$" is just a dollar-character, exactly so as by second example "-" is minus character.
      
      BTW if that will be "fixed", thousands tcl codes over the world would be no longer functional. Then the backwards compatibility always has a priority here!
      
      The only exception here was a sequence "{*}" (does expanding of arguments), but it was possible only why such combination was anyway not allowed in previous versions because of chars after closed brace (so indirect it was backwards compatible):
      
        % puts {*}[list stdout test]
        test
      
      Please take a look into documentation about tcl substitution, before post a new "bugs" here...
      Close now, because won't be fixed.
      
    4. login: "sebres"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
  3. Ticket change [8c56e1d98a] (rid 148058) by dgp on 2016-07-15 16:10:34:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2457585.17401169"
    3. closer changed to: "dgp"
    4. icomment:
      
      Appears to be a near-duplicate of ticket from 
      yesterday.
      
      http://core.tcl.tk/tcl/tktview?name=58241eb2e4
      
      Suspect it is the same bug -- and it is still
      fixed for 8.6.6.
      
      Crashes should be reported.  Detailed instructions
      help, since the crash did not happen unless the
      commands were fed to tclsh via stdin.  Testing
      with script files did not demonstrate the problem.
      
      In fact it is especially important to report cases
      like this where bad code causes crashes because since
      it is bad code we're much less likely to see someone
      else uncover it by chance.
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Duplicate"
  4. Ticket change [7006e14244] (rid 148059) by dgp on 2016-07-15 16:10:49:

    1. closedate changed to: "2457585.17418358"
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. subsystem changed to: "47. Bytecode Compiler"