Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bc24f3a1027540946bef52d706d62b7858691a33edb7b1a1c78c8fdcf697484a
Ticket: 37f485b87c6e00dc917ff014e363d6ea31e404f9
# Error in lreplace.
User & Date: anonymous on 2022-11-27 17:01:10
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    ########################################################
    # Error in lreplace.
    ########################################################
    puts "$::tcl_patchLevel\n$::tcl_platform(os); $::tcl_platform(machine);\
     $::tcl_platform(platform); $::tcl_platform(osVersion); $::tcl_platform(wordSize);"
    if { [catch { set var [lreplace {a b c d e} 12345 end+2 f g h i] } res ] } {
      puts "res = $res"                                                            
    }
    ########################################################
    #Output:
    Windows NT; intel; windows; 10.0; 4;
    res = list doesn't contain element 12345
    ########################################################
    # But, according https://tcl.tk/man/tcl/TclCmd/lreplace.htm, must be var=
    #a b c d e f g h i
    ########################################################
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "011cf1866dfa8bb09f711926168b65e59e21409c"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "17. Commands I-L"
  15. title changed to: "# Error in lreplace."
  16. type changed to: "Bug"