Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b43c6dff4109eab3ac88e953318c4de0b801ff461d1e8e87bbc8de8ce820186b
Ticket: ad8df845fef2c76d95b9f1aaa4815f3b23d4c472
bug in manpage of lset
User & Date: anonymous on 2020-04-25 16:22:38
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Here it is: https://www.tcl-lang.org/man/tcl/TclCmd/lset.htm
    
    In the man page of "lset", section EXAMPLES, the last example of the first example list is incorrect (I have tried it in tclsh of 8.6). The example states:
    
    set x [list [list a b c] [list d e f] [list g h i]]
    lset x {2 3} j
       → list index out of range
    
    but second index "3" is still ok, it extends the third sublist:
    → {a b c} {d e f} {g h i j}
    
    Probably the example should be changed to use index "4" instead of "3":
    
    lset x {2 4} j → list index out of range
    
  5. foundin changed to: "8.6.10"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "da4ae8b87c1c7a5f8e7a4a1c5c00f4d8c999b52c"
  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: "bug in manpage of lset"
  16. type changed to: "Bug"