Skip to content
Tcl Source Code Artifact [9647faa9f3]
Login

Artifact [9647faa9f3]

Artifact 9647faa9f3e24cd2e46744d02a79b53f124b1aa3:

Ticket change [9647faa9f3] - New ticket [219376ffffffffff|219376ffff] <i>New Feature Request: Pass the results of the last command in</i>. by nobody on 2000-10-26 05:11:50.
D 2000-10-26T05:11:50
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6006\sRFE\nVersion:\s8.4a1\nSubmitDate:\s'2000-07-12'\nLastModified:\s'2000-10-25'\nSeverity:\sLOW\nStatus:\sUnAssn\nSubmitter:\stechsupp\nOS:\sAll\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nPhilip\sMoore\n\nComments:\nThen\shere's\ssome\sTCL\scode\sto\stry\sto\sexplain\s(if\syou\sdon't\salready\n\s\s\s\sunderstand\swhat\sI'm\ssaying):\n\n\s\s\s\sIt\swould\sbe\sextremely\shandy\sif\sI\scould\sdo\sthis:\n\n\s\s\s\sif\s{[foreach\sa\s"a\sb\sc\sd"\s{\sdo\swhatever\sstuff\son\s$a\sand\s$arg\shere\s}]\s==\n\s\s\s\s"c"}\s{\s}\n\n\s\s\s\sThat\swould\ssave\sme\sfrom\shaving\sto\sdo\sall\sthis:\n\n\s\s\s\sif\s{"[mycommand\s$arg]"\s==\s"c"}\s{\s}\n\n\s\s\s\sproc\smycommand\s{arg}\s{\n\s\s\s\s\s\sforeach\sa\s"a\sb\sc\sd"\s{\sdo\swhatever\sstuff\son\s$a\sand\s$arg\shere\s}\s\n\s\s\s\s\s\sreturn\s$result\s\n\s\s\s\s}\n\n\s\s\s\sAlso,\sif\sfor,\sforeach,\sand\swhile\sreturned\sthe\sresults\sof\sthe\slast\sthing\n\s\s\s\sinside\sthem\syou\scould\shave\sa\sproc\slike\sthis:\n\n\s\s\s\sproc\ssomeproc\s{arg}\s{\n\s\s\s\s\s\s\sfor\s{set\sx\s0}\s{$x<$arg}\s{incr\sx}\s{\n\s\s\s\s\s\s\s\s\slappend\sout\s"x\sis\s$x"\n\s\s\s\s\s\s\s}\n\s\s\s\s}\n\n\s\s\s\sInstead\sof\shaving\sthis:\n\n\s\s\s\sproc\ssomeproc\s{arg}\s{\n\s\s\s\s\s\s\sfor\s{set\sx\s0}\s{$x<$arg}\s{incr\sx}\s{\n\s\s\s\s\s\s\s\s\slappend\sout\s"x\sis\s$x"\n\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\sset\sout\n\s\s\s\s}\n\n\s\s\s\sI\sknow\smy\sexamples\swere\skinda\spoor..\sBut\sthey\sshould\shave\sgotten\smy\n\s\s\s\spoint\sacross..\s\n\s\s\s\sAnd\sbefore\ssomebody\ssays\sthis\sis\sa\sbad\sidea..\sI\shave\sto\ssay\sthis..\n\s\s\s\sproc's\sthemselves\salready\sreturn\sthe\sresults\sof\sthe\slast\scommand,\sso\swhy\n\s\s\s\scan't\sfor,\sforeach,\sand\swhile?\n\n\s\s\s\s-Philip\sMoore\s\n\s\s\s\[email protected]\n\n\s\s\s\sp.s.\n\s\s\s\sPlease\sCC\sany\sreplies\sto\[email protected]\sas\sI\sdon't\shave\saccess\sto\n\s\s\s\sthe\snewsgroup.\n\nDesiredBehavior:\nThe\scommands\sfor,\sforeach,\sand\swhile\sdon't\spass\sthe\sresults\sof\sthe\slast\scommand\sinside\sthem..\sIt'd\sbe\snice,\sI\sthink,\sif\sthey\sdid..\s(Currently,\sthey\salways\sreturn\s"")\n\n\n\n
J foundin obsolete:\s8.4a1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title New\sFeature\sRequest:\sPass\sthe\sresults\sof\sthe\slast\scommand\sin
J type RFE
K 219376ffffffffffffffffffffffffffffffffff
U nobody
Z 457e59c3597eae17b484e2731d59d994