.
D 2011-05-25T05:14:21
J assignee andreas_kupries
J cmimetype text/plain
J comment Hi\sall,\n\nI'm\susing\sTcl_SetStdChannel\sto\sredirect\sall\soutput\sfrom\smy\sprogram+script\sto\san\sexternal\sfile.\sI\snoticed\sthat\ssome\soutput\sof\s'puts'\sis\snot\sbeing\sredirected.\sI'm\snot\sable\sto\smake\sa\sreduced\stest\sthat\scovers\sboth\ssituations\sI\ssee\sin\smy\sbigger\sprogram.\sHere\sis\sone\sthat\sI\swas\sable\sto\smake\sthat\sillustrates\sone\sof\sthem.\n\nIn\sthis\sreduced\stest:\sthe\scommand\s'puts\sstdout\s<string>'\sgets\sredirected,\sbut\sif\sI\sleave\sout\s'stdout',\sit\sdoesn't.\sHowever,\sin\smy\sreal\sprogram\sI\sget\sa\ssituation\swherein\sredirection\sdoesn't\swork\seven\safter\sexplicitly\sspecifying\s'stdout'.\n\nHaving\slooked\sat\sthe\scode,\sit\sseems\slike\sthere\sare\sa\scouple\sof\sways\sby\swhich\sa\sstring\slike\s'stdout'\sis\sconverted\sinto\sa\schannel\shandle.\sThese\sdon't\sseem\sto\sbe\srespecting\sTcl_SetStdChannel.\sFor\sthe\scase\swhere\seven\sspecifying\s'stdout'\sdoesn't\sresult\sin\sredirection\sin\smy\sreal\stest,\sI\snoticed\sthat\sthe\scode\ssatisfies\stest\s'objPtr->typePtr\s==\s&tclChannelType'\sin\sSetChannelFromAny\s(tclIO.c).\n\nAm\sI\sdoing\ssomething\swrong?\n\nThanks!
J foundin obsolete:\s8.5.9
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J subsystem 25.\sChannel\sSystem
J title Tcl_SetStdChannel\snot\srespected\sby\s'puts'
J type Bug
K 3307281fffffffffffffffffffffffffffffffff
U
Z be61e56eb3975db7f321020218028126