Skip to content
Tcl Source Code Artifact [9c4f2655eb]
Login

Artifact [9c4f2655eb]

Artifact 9c4f2655ebd6bda5a37acf79ed4e2b5487bb89bd:

Ticket change [9c4f2655eb] - New ticket [218814ffffffffff|218814ffff] <i>Redirection to NUL: broken</i>. by nobody on 2000-10-26 01:05:54.
D 2000-10-26T01:05:54
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2209\sBug\nVersion:\s8.1.1\nSubmitDate:\s'1999-06-15'\nLastModified:\s'1999-07-29'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\sredman\nOS:\sWindows\s95\nMachine:\sX86\nFixedDate:\s'1999-07-29'\nFixedInVersion:\s8.2b2\nClosedDate:\s'2000-10-25'\n\n\nName:\nDon\sPorter\n\nComments:\nHas\sanyone\selse\sfigured\sout\sa\sworkaround\sfor\sthis?\n\s\s\s\sAll\smy\sattempts\sso\sfar\shave\sfailed.\n\nReproducibleScript:\n#\sFILE:\sdemo.tcl\n\s\s\s\sputs\sstdout\s"msg\sto\sstdout"\n\s\s\s\sputs\sstderr\s"msg\sto\sstderr"\n\nObservedBehavior:\n1.\sTcl\s8.1.1\son\sLinux/Alpha\n\s\s\s\s$\stclsh8.1\n\s\s\s\s%\sinfo\spatchlevel\n\s\s\s\s8.1.1\n\s\s\s\s%\scatch\s{exec\stclsh8.1\sdemo.tcl}\sres\n\s\s\s\s1\n\s\s\s\s%\sset\sres\n\s\s\s\smsg\sto\sstdout\n\s\s\s\smsg\sto\sstderr\n\s\s\s\s%\scatch\s{exec\stclsh8.1\sdemo.tcl\s>\s/dev/null}\sres\n\s\s\s\s1\n\s\s\s\s%\sset\sres\n\s\s\s\smsg\sto\sstderr\n\s\s\s\s%\scatch\s{exec\stclsh8.1\sdemo.tcl\s>&\s/dev/null}\sres\n\s\s\s\s0\n\s\s\s\s\n\s\s\s\sGood\s--\sthat's\swhat\sI\swant.\n\s\s\s\s\n\s\s\s\s2.\sTcl\s8.0.5\son\sWindows95\n\s\s\s\sC:\\>\stclsh80\n\s\s\s\s%\sinfo\spatchlevel\n\s\s\s\s8.0.5\n\s\s\s\s%\scatch\s{exec\stclsh80\sdemo.tcl}\sres\n\s\s\s\s1\n\s\s\s\s%\sset\sres\n\s\s\s\smsg\sto\sstdout\n\s\s\s\smsg\sto\sstderr\n\s\s\s\s%\scatch\s{exec\stclsh80\sdemo.tcl\s>\sNUL:}\sres\n\s\s\s\s1\n\s\s\s\s%\sset\sres\n\s\s\s\smsg\sto\sstderr\n\s\s\s\s%\scatch\s{exec\stclsh80\sdemo.tcl\s>&\sNUL:}\sres\n\s\s\s\s0\n\s\s\s\s\n\s\s\s\sExcellent!\s\sWith\sproper\ssubstitutions\sfor\sthe\snames\n\s\s\s\sof\sthe\sshell\sand\sthe\snull\sdevice,\sI\shave\scross-platform\n\s\s\s\sredirection\sto\sa\s/dev/null\sequivalent!\n\s\s\s\s\n\s\s\s\sNow\senter\sthe\sevil\svillain...\sTcl\s8.1\sfor\sWindows!\n\s\s\s\s\n\s\s\s\s3.\sTcl\s8.1.1\son\sWindows95\n\s\s\s\s%\sinfo\spatchlevel\n\s\s\s\s8.1.1\n\s\s\s\s%\scatch\s{exec\stclsh81\sdemo.tcl}\sres\n\s\s\s\s1\n\s\s\s\s%\sset\sres\n\s\s\s\smsg\sto\sstdout\n\s\s\s\smsg\sto\sstderr\n\s\s\s\s%\scatch\s{exec\stclsh81\sdemo.tcl\s>\sNUL:}\sres\n\s\s\s\s1\n\s\s\s\s%\sset\sres\n\s\s\s\scan\snot\sfind\schannel\snamed\s"stdout"\n\s\s\s\s\s\s\s\swhile\sexecuting\n\s\s\s\s"puts\sstdout\s"msg\sto\sstdout""\n\s\s\s\s\s\s\s\s(file\s"demo.tcl"\sline\s2)\n\s\s\s\s%\scatch\s{exec\stclsh81\sdemo.tcl\s>&\sNUL:}\sres\n\s\s\s\s1\n\s\s\s\s%\sset\sres\n\s\s\s\schild\sprocess\sexited\sabnormally\n\s\s\s\s%\sset\serrorCode\n\s\s\s\sCHILDSTATUS\s-1\s1\n\nDesiredBehavior:\nWhat\shappened?!\n\s\s\s\s\n\s\s\s\sI\swant\sa\scross-platform\sway\sto\sredirect\sstdout/stderr\sof\s\n\s\s\s\sa\scommand\spipeline\sto\s(the\sequivalent\sof)\s/dev/null.\s\sI\n\s\s\s\shad\sit,\sand\syou\stook\sit\saway!\s\sGive\sit\sback,\sor\n\s\s\s\sgive\sme\sanother\sway.\n\n\n\nAllow\stcl\sto\suse\sCHAR\sand\sUNKNOWN\sfile\stypes\seven\sfor\sstd\schannels.\s\n--\s07/29/1999\sredman
J foundin final:\s8.1.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Redirection\sto\sNUL:\sbroken
J type Bug
K 218814ffffffffffffffffffffffffffffffffff
U nobody
Z b1cfd7663b9d55c548902d2d693c04c9