Artifacts Associated With Ticket 64f21f0e50
Ticket change [398e83877c] (rid 203300) by anonymous on 2022-08-25 15:59:26:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
Ubuntu Linux: Start tclsh on command line. Paste in the following code: try { no } on error outcome { try { yes } on error outcome2 { puts "$outcome $outcome2" } } Expected to get two concatenated error messages, get a streaming column of "y"s until the interpreter finally cores out. Only the value "yes" in the nested try causes the bug. I haven't found any other value that triggers it. - foundin initialized to: "8.6.5"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "d119f61bcd79212a333062099f7b7aa46182e449"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "Infinite loop with nested try"
- type initialized to: "Bug"
Ticket change [6b3c2eff29] (rid 203301) by sebres on 2022-08-25 16:53:31:
- closedate changed to: "2459817.2038317"
- closer changed to: "sebres"
- comment changed to:
Ubuntu Linux: Start tclsh on command line. Paste in the following code: ``` try { no } on error outcome { try { yes } on error outcome2 { puts "$outcome $outcome2" } } ``` Expected to get two concatenated error messages, get a streaming column of "y"s until the interpreter finally cores out. Only the value "yes" in the nested try causes the bug. I haven't found any other value that triggers it. - icomment:
Try to type `yes` in linux shell (not in tclsh), you'll notice the same picture.<br/> Hereafter use `man yes` and see: ``` yes - output a string repeatedly until killed ``` Tclsh running in interactive mode has a fallback doing `exec command ...`, if the command is not found in interpreter (this is documented behavior, see the documentation for [unknown](https://www.tcl-lang.org/man/tcl/TclCmd/unknown.htm) handler).<br/> To avoid this in tclsh, either start your snippet as script non-interactively (or disable interactive mode or rewrite default unknown in init.tcl) or simply specify your own `yes` command like: ``` proc yes args {return -code error "yes is not a command"} ``` before you'd try your code. Thus closed as incorrect. - login: "sebres"
- mimetype: "text/x-markdown"
- resolution changed to: "Invalid"
- severity changed to: "Cosmetic"
- status changed to: "Closed"