Skip to content
Tcl Source Code Artifact [f9ffc5cd18]
Login

Artifact [f9ffc5cd18]

Artifact f9ffc5cd18d064de7e41af0dae3e8799a6671298:

Ticket change [f9ffc5cd18] - New ticket [218339ffffffffff|218339ffff] <i>Gripes about pipes</i>. by nobody on 2000-10-26 00:56:25.
D 2000-10-26T00:56:25
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3985\sRFE\nVersion:\s8.0.5\nSubmitDate:\s'2000-01-06'\nLastModified:\s'2000-01-10'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sSolaris\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-01-10'\n\n\nName:\nKrzysztof\sKozminski\n\nDesiredBehavior:\nDid\sanyone\sever\scomplain\sthat\sTcl\spipes\sdon't\swork\svery\swell\swith\nprocesses\sthat\spass\sout\ssome\sof\stheir\soutput\svia\sexit\sstatus,\ssuch\nas\sthe\sunix\s'diff'\scommand?\n\nI\sfind\sthis\sexample\srather\sannoying:\n\n%\sopen\s[list\s|\sdiff\s$file1\s$file2\s|\swc]\nfile7\n%\sread\sfile7\n\s\s\s\s\s639\s\s\s\s3230\s\s\s19434\n\n%\sclose\sfile7\nchild\sprocess\sexited\sabnormally\n\nThere\sis\snothing\sabnormal\shere;\sdiff\sexits\swith\sstatus\s1\sif\sit\nfinds\sdifferences.\s\sPresently,\sI\shave\sto\sdo\ssome\sridiculous\nconvolutions\slike:\n\n%\sopen\s\s[list\s|\s/bin/sh\s-c\s"diff\s'$file1'\s'$file2';exit\s0"\s|\swc]\n\nwhich\swork\sfine\suntil\sI\shave\sa\sfilename\swith\sfunny\scharacters\nin\sit.\s\sTcl\spipe\sis\smuch\snicer\sin\senabling\sme\sto\swork\swith\narbitrary\sfilenames.\n\nIt\swould\sbe\snice\sto\shave\ssome\scontrol\sover\swhat\sexit\sstatus\nis\sconsidered\sabnormal.\s\sPerhaps\ssomething\slike:\n\npid\sfileId\spIndex\s-exitok\sexpression\n\nwhere\spIndex\swould\sbe\sthe\saddress\sof\sthe\sprocess\sin\sthe\spipe,\nand\sexpression\swould\sbe\sa\sTcl\sexpression\sin\swhich\s'#'\swould\nstand\sfor\sthe\sexit\sstatus.\n\nIn\smy\sexample,\sI\swould\sdo:\n\n%\sopen\s"|\sdiff\s.cshrc\s.login\s|\swc"\n%\spid\sfile7\s0\s{(#\s==\s0)\s==\s(#\s==\s1)}\n\nOr\smaybe\s'close'\sshould\sreturn\sa\slist\sof\sexit\sstatus\svalues\sfor\nthe\suser\sto\sdecide\swhether\sthey\swere\sabnormal\sor\snot.\s\sSomething\nlike:\n\n%\sclose\sfile7\s-getexits\n1\s0\n\n\n\nThis\sRFE\swants\sto\sallow\sfor\s!0\sexit\scodes\sto\sbe\sconsidered\n"normal"\sexits,\swhich\sgoes\sagainst\sthe\sgrain\sof\sTcl\sand\sthe\nde\sfacto\sstandard\sfor\sexit\sstatus.\s\sWe\sunderstand\sthat\sthere\nare\sa\sfew\scommands\sin\sUnix\swhich\sreturn\s!0\safter\s"normal"\nexecution,\sbut\sthese\scan\sstill\sbe\shandled,\sand\sas\sspecial\ncases\sshould\sbe.\s\n--\s01/10/2000\shobbs
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 63.\s(unused)
J title Gripes\sabout\spipes
J type Bug
K 218339ffffffffffffffffffffffffffffffffff
U nobody
Z df4d1e013b385f2d0c6eba10db555437