Skip to content
Tcl Source Code Artifact [74e40af66a]
Login

Artifact [74e40af66a]

Artifact 74e40af66af11846b65df34752deca60c49a836f:

Ticket change [74e40af66a] - New ticket [219161ffffffffff|219161ffff] <i>Merging stdout and stderr</i>. by nobody on 2000-10-26 05:02:30.
D 2000-10-26T05:02:30
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1470\sRFE\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-08'\nLastModified:\s'2000-04-26'\nSeverity:\sSER\nStatus:\sAssigned\nSubmitter:\spat\nChangedBy:\shobbs\nRelatedBugIDs:\s682\s582\nOS:\sAll\nFixedDate:\s'2000-10-25'\nFixedInVersion:\sNA\nClosedDate:\s'2000-10-25'\n\n\nName:\s\sAlexandre\sFERRIEUX\n\nDesiredBehavior:\nIt\sis\swell\sknown\sthat\sit's\snot\strivial\sto\smerge\sthe\sstdout\sand\sstderr\sof\na\schild\son\sWindows.\sThe\sDebated\spatch\sby\sIan\sTaylor\sdragged\sthe\sexisting\n>@\sredirection\ssemantics\sthe\swring\sway\s(i.e.\spatching\sWIndows\sto\smimic\nUNIX,\swhile\sfor\sonce\sthe\sUNIX\sbehavior\sis\swrong\s!!!).\sSuggestions\shave\nbeen\smade\sto\suse\s"2>&1"\sinstead,\swhich\sat\sleast\sdoesn't\sviolate\sthe\srest\nof\sthe\s>@\ssemantics.\sThe\sproblem\swith\sthis\sis\sthat\sit's\sa\sBourne\nshell-based\snotation,\swhile\sthe\srest\sof\s[exec/open]\suses\sa\scsh-notation.\nIn\sparticular\s,\s">&"\salready\sexists,\swhich\swould\smake\s"2>&1"\sat\sleast\nambiguous.\n\s\s\s\s\nHence,\sI\ssuggest\sa\ssyntax\sextension\sthat\sis\smore\sin\sthe\sspirit\sof\sthe\nexisting\snotation,\swhile\sprotecting\sthe\ssemantics:\s">&@outpipe".\nExplanation:\s">&@x"\salready\sexists,\smeaning\s"redirect\sboth\sstdout\sand\nerr\sto\sthe\spreviously\sopened\sdescriptor\sfound\sat\sthe\slow\slevel\sof\sthe\nTcl\schannel\s'x'.\nNotice\sthat\sIan\sTaylor's\spatch\sfor\sWindows\sand\sthe\scurrent\s(buggy)\nsemantics\sfor\sUnix\sboth\spropose\sto\suse\s"stdout"\shere\sas\s"x".\sInstead,\sI\npropose\sto\suse\sa\snew\sstring\s"outpipe",\swhich\swould\sbe\srecognized\ninternally\sas\s'the\soutput\spipe\sbeing\screated'.\n\n\nSee\s682\sfor\slonger\sexplanation\sof\sodd\sbehavior.\s\s582\sis\sthe\s"incorrect"\npatch\sthat\sIan\sTaylor\sproposed.\s\n--\s04/26/2000\shobbs
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 Merging\sstdout\sand\sstderr
J type Bug
K 219161ffffffffffffffffffffffffffffffffff
U nobody
Z 2faeb1e87b3006841a0f06fd33aaf470