Skip to content
Tcl Source Code Artifact [b5689326a8]
Login

Artifact [b5689326a8]

Artifact b5689326a8cb534ead1e1c29706757cd022f7050:

Ticket change [b5689326a8] - New ticket [218167ffffffffff|218167ffff] <i>exec fails if external program outputs on stderr.</i>. by nobody on 2000-10-26 00:54:03.
D 2000-10-26T00:54:03
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2252\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-06-16'\nLastModified:\s'1999-12-03'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sHP-UX\nOSVersion:\sB.10.20\sA\s9000/782\s2007715559\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-12-03'\n\n\nName:\sThomas\sJoergensen\n\nReproducibleScript:\n$\scat\sbooh\n\s\s\s\s#!\s/bin/ksh\n\s\s\s\sprint\s"Hello\sWorld."\n\s\s\s\sprint\s-u2\s"Booh!"\n\s\s\s\s$\scat\scatchbooh\n\s\s\s\s#!\s/usr/local/bin/tclsh\n\s\s\s\sputs\s[catch\s{exec\s./booh}\sout]\n\s\s\s\s$\s./catchbooh\n\s\s\s\s1\n\s\s\s\sBooh!\n\s\s\s\s$\n\nObservedBehavior:\nexec\sfails\sif\sthe\sexternal\sprogram\swrites\sanything\sto\sstderr.\s\sThis\sis\n\s\s\s\snot\n\s\s\s\sa\swrong\sbehavior\sof\sa\sprogram\sand\sshould\snot\sin\sitself\snot\sthrow\san\n\s\s\s\sexeption.\n\s\s\s\s\n\s\s\s\sThe\sKorn\sshell\sscript\sexits\snormally\swith\san\sexitcode\sof\szero.\s\sIf\sit\n\s\s\s\sprints\n\s\s\s\sto\sstdout\s(print\s"...")\sinstead,\sit\sdoes\snot\smake\sexec\sthrow\san\n\s\s\s\sexeption.\n\s\s\s\s\n\s\s\s\sI\stake\sthis\sto\sbe\sa\sbug,\ssince\sit\sis\snot\sdescribed\sin\seither\sthe\n\s\s\s\sexec(3t)\sman\n\s\s\s\spage\snor\sin\sthe\s"Tcl\sand\sthe\sTK\sToolkit"\sby\sJohn\sK.\sOusterhout\n\nDesiredBehavior:\nAn\sexternal\sprogram\sterminating\swith\san\sexitcode\sof\szero\sshould\snot\smake\n\s\s\s\sexec\sthrow\san\sexeption.\n\n\n\nIn\sthe\sdocs\sfor\sexec\sfor\sTcl,\sit\sstates:\n\nIf\sany\sof\sthe\scommands\swrites\sto\sits\sstandard\serror\sfile\sand\sthat\sstandard\serror\sisn't\sredirected,\sthen\sexec\swill\sreturn\san\serror;\s\sthe\serror\smessage\swill\sinclude\sthe\spipeline's\sstandard\soutput,\sfollowed\sby\smessages\sabout\sabnormal\sterminations\s(if\sany),\sfollowed\sby\sthe\sstandard\serror\soutput.\s\s\n--\s12/03/1999\shobbs\n\n
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 60.\sNRE\sand\scoroutines
J title exec\sfails\sif\sexternal\sprogram\soutputs\son\sstderr.
J type Bug
K 218167ffffffffffffffffffffffffffffffffff
U nobody
Z 7838f016a9682edb5f04e960abec4d8c