.
D 2022-08-25T16:53:31.059
J closedate 2459817.2038317
J closer sebres
J comment Ubuntu\sLinux:\r\n\r\nStart\stclsh\son\scommand\sline.\r\n\r\nPaste\sin\sthe\sfollowing\scode:\r\n```\r\n\s\s\s\stry\s{\r\n\tno\r\n\s\s\s\s}\son\serror\soutcome\s{\r\n\ttry\s{\r\n\t\tyes\r\n\t}\son\serror\soutcome2\s{\r\n\t\tputs\s"$outcome\s$outcome2"\r\n\t}\r\n\s\s\s\s}\r\n```\r\nExpected\sto\sget\stwo\sconcatenated\serror\smessages,\sget\sa\sstreaming\scolumn\sof\s"y"s\suntil\sthe\sinterpreter\sfinally\scores\sout.\r\n\r\nOnly\sthe\svalue\s"yes"\sin\sthe\snested\stry\scauses\sthe\sbug.\s\sI\shaven't\sfound\sany\sother\svalue\sthat\striggers\sit.
J icomment Try\sto\stype\s`yes`\sin\slinux\sshell\s(not\sin\stclsh),\syou'll\snotice\sthe\ssame\spicture.<br/>\r\nHereafter\suse\s`man\syes`\sand\ssee:\r\n```\r\n\s\s\s\syes\s-\soutput\sa\sstring\srepeatedly\suntil\skilled\r\n```\r\n\r\nTclsh\srunning\sin\sinteractive\smode\shas\sa\sfallback\sdoing\s`exec\scommand\s...`,\sif\sthe\scommand\sis\snot\sfound\sin\sinterpreter\s(this\sis\sdocumented\sbehavior,\ssee\sthe\sdocumentation\sfor\s[unknown](https://www.tcl-lang.org/man/tcl/TclCmd/unknown.htm)\shandler).<br/>\r\nTo\savoid\sthis\sin\stclsh,\seither\sstart\syour\ssnippet\sas\sscript\snon-interactively\s(or\sdisable\sinteractive\smode\sor\srewrite\sdefault\sunknown\sin\sinit.tcl)\sor\ssimply\sspecify\syour\sown\s`yes`\scommand\slike:\r\n```\r\n\s\s\s\sproc\syes\sargs\s{return\s-code\serror\s"yes\sis\snot\sa\scommand"}\r\n```\r\nbefore\syou'd\stry\syour\scode.\r\n\r\nThus\sclosed\sas\sincorrect.
J login sebres
J mimetype text/x-markdown
J resolution Invalid
J severity Cosmetic
J status Closed
K 64f21f0e506d6365a1db0e53eafdee47e6a18375
U sebres
Z 845e97439a88222ff7142407eda86365