Skip to content
Tcl Source Code Artifact [8d261fd726]
Login

Artifact [8d261fd726]

Artifact 8d261fd72647afcb377ab8d2da3db1262b2273a0:

Ticket change [8d261fd726] - New ticket [217780ffffffffff|217780ffff] <i>uxin exec bug when redirecting stdout with &quot;2&gt;@ stdout&quot;</i>. by nobody on 2000-10-26 00:43:32.
D 2000-10-26T00:43:32
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s701\sBug\nVersion:\s8.0.3\nSubmitDate:\s'1998-10-07'\nLastModified:\s'1999-02-18'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\sadmin\nChangedBy:\sstanton\nRelatedBugIDs:\s682\nOS:\sAll\sUnix\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nFixedInVersion:\sNA\nClosedDate:\s'1999-02-18'\n\n\nThis\sis\sa\sbug\son\sthe\s*unix*\sside\sfor\stclsh\s(it\sis\sstill\spresent\sin\s8.0.3).\n\nWhen\syou\sdo\n\n\s\s\s\s\s\s\s\sset\sx\s[exec\sgcc\s-v\s2>@\sstdout]\n\nyou\sget\sthe\schild's\sstderr\sinto\s$x.\s(gcc\s-v\swrites\sto\sits\sstderr)\n\nThis\s*is*\sa\sbug,\sbecause\shere\s"2>@\sstdout"\sbehaves\sexactly\slike\s"2>&1"\nin\s\sBourne\sshell;\s\sthis\s\sis\snot\sthe\sproper\ssemantics\sfor\s\sTcl,\sbecause\n"@stdout"\sshould\sbe\sinterpreted\sas\s"tclsh's\sstdout"\sand\s*not*\swhat\sthe\n"1"\sfile\sdescriptor\shappens\s\sto\sbe\s\sat\sthat\s\stime\s(within\s\sthe\schild),\ni.e.\sexec's\soutput\spipe.\n\nAnother\s\sway\sof\s\slooking\s\sat\sit:\sthis\s\ssemantics\s\sshould\smake\s\sthe\s">@\nstdout"\sconstruct\sequivalent\sto\snothing.\sBut\sit\sis\snot:\n\n\s\s\s\s\s\s\s\sset\sx\s[exec\sdate\s>@\sstdout]\n\nproperly\s\soutputs\sthe\s\sdate\s\sto\stclsh's\sstdout,\s\sand\sstores\s\sthe\sempty\nstring\sin\sx.\s\sSo\sthere\sseems\sto\sbe\sa\sspecial\scase\saround\s2>@stdout.\n\nNasty,\seh\s?\n\n\sPlease\snote\sthat\sIan\sTaylor's\s"patch"\s(in\s\syour\sPatches\spage)\son\sthis\nsubject,\s\sduplicates\sthis\s\s*wrong*\s\sbehavior\son\sWindows,\s\sbecause\s\sIan\nfinds\sit\shandy\sfor\shis\sparticular\scase...\sSo\sI'm\salso\ssaying\sthat\sthis\npatch\s\s\sshould\s\s\sbe\s\s\srejected.\s\s\s\s(But\s\s\s\sI\s\s\sgot\s\s\sno\s\s\sreply\s\s\sfrom\[email protected]).\n\n\sIan\sand\sI\shave\scome\sto\sthe\sagreement\sthat\sa\s*feature*\sshould\sbe\sadded\ninstead:\sallowing\sthe\sBourne\sshell\s"N>&P"\snotation\s(N\sand\s\sP\sin\s[0-9])\ninside\s\sexec\sand\sopen.\sThis\ssyntax\sextension\s\swould\ssupport\sthe\swanted\nlow-level\sdescriptor\ssemantics,\shence\she\scould\swrite:\n\n\s\s\s\s\s\s\s\sset\sx\s[exec\sgcc\s-v\s2>&1]\n\nwhile\n\n\s\s\s\s\s\s\s\sset\sx\s[exec\sgcc\s-v\s2>@\sstdout]\n\nwould\scorrectly\soutput\s\sthe\sgcc\s\sversion\sto\stclsh's\sstdout,\s\sand\sstore\nthe\sempty\sstring\sinto\sx.\n\n-Alex\n\n\n
J foundin obsolete:\s8.0.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 60.\sNRE\sand\scoroutines
J title uxin\sexec\sbug\swhen\sredirecting\sstdout\swith\s"2>@\sstdout"
J type Bug
K 217780ffffffffffffffffffffffffffffffffff
U nobody
Z 1eab60a25a531ee94ec4a971cbc4dacb