|
2004-01-13
| ||
| 21:31 | • Ticket [768678ffff] open "|prog >file" throws error but still execu... artifact: 6bdf80cb8a user: avl42 | |
|
2003-07-09
| ||
| 19:19 | • New ticket [768678ffff]. artifact: d72fc8bfa3 user: nobody | |
open "|prog >file" throws error but still executes prog
Open768678ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-07-09 19:19:06
e.g.: set pipe [open "|echo foo >bar" r] rightly throws an error, because stdout is redirected in a pipe opened for reading. But: by the time it complains, the pipeline has already been executed (with all it's sideeffects) or is still running in the background and no channel is assigned, so these processes of the pipe cannot be identified. A solution to this would likely involve changing the signature of TclCreatePipeline() (although it is "unofficially exported for BLT"). One solution could be to add an integer "flags" argument, similar to Tcl_OpenCommandChannel() and pass along TCL_STDIN and/or TCL_STDOUT depending on whether the pipe is opened for r,w or both, doing the forbid-mechanics one level deeper than where it is done now.
avl42plain2004-01-13 21:31:28
Logged In: YES user_id=830354 Has this been forgotten?
Log in (anonymous is fine) to add a comment.