Skip to content
Tcl Source Code History Of Ticket fe4d7305a8745103
Login

History Of Ticket fe4d7305a8745103

Artifacts Associated With Ticket fe4d7305a8745103

  1. Ticket change [e089fc5d5f] (rid 164538) by euller on 2018-07-09 17:27:48:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      The issue is related to renaming the history command. Upon rename, the interpreter enters recursion, which triggers an infinite loop error.
      
      Steps to reproduce:
      
      - Run the following code with Tcl version 8.6.4. There are no errors issued:
      ~~~
          % rename history _history
          % proc history {args} {_history {*}$args}
          % history add example_cmd
      ~~~
      
      - Run the same code under version 8.6.8. The execution errors out with the following message:
      ~~~
          too many nested evaluations (infinite loop?)
      ~~~
      
    5. foundin initialized to: "8.6.8"
    6. is_private initialized to: "0"
    7. login: "euller"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "a4a773cb5ca7ba885ceb6bfdf316d4ae118c57cc"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "euller"
    14. subsystem initialized to: "19. [history]"
    15. title initialized to: "Renaming history command results in infinite loop"
    16. type initialized to: "Bug"
  2. Ticket change [729c9f137f] (rid 222041) by kjnash on 2024-02-03 14:47:33:

    1. closedate changed to: "2460344.1163545"
    2. closer changed to: "kjnash"
    3. icomment:
      The bug (renaming ::history) has been fixed.  It is not present in Tcl 8.6.13.
      
      ::history is a proc that calls the binary command ::tcl::history.  If ::history is renamed or deleted, the interpreter regenerates the proc ::history.
      
      However this regeneration has a bug of its own - see [8e666d7c95]
      
    4. login: "kjnash"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"