Error Writing Stdout Broken Pipe Tcl
Contents |
to the list below, please insert the things in the appropriate place. If someone is aware of code (patches, extensions, procs, etc.) which fulfills the need, please drop a cannot find channel named tcl URL or Wiki reference in place so that we know that requirement has/can be
Cannot Find Channel Named Stdout Tcl
met.Also, feel free to add, enhance, or expand on the categories and/or definitions below. I just took a first crack
Expect Cannot Find Channel Named
at this as a brain storming start place.DKF: This page needs to be rewritten so as to separate out features that are best as (possibly existing) extension packages, and those that really need
Tcl Open File
to be in Tcl itself.Missing Features - these have to do with how Tcl the language itself works, syntactically, gramatically, etc.Critical Missing FeaturesInsert items here which are so needed in Tcl that until the feature is present, the language isn't suitable for use in your particular problem domain. If you have a lot of description, background, etc. drop in a Wikit or URI pointer to a seperate location.Important Missing FeaturesItems inserted here will add to Tcl features which are needed to resolve major development or support issues.Useful Missing FeaturesItems inserted here improve Tcl in significant ways.Features Found In Every ProgrameditFunctions or commands you find yourself adding to every program you write. Sure, there's no need to add them to the core...but wouldn't it be nice if you could forget about them?A command that returns a guaranteed unused command name, optionally using a template for the name.An [lshift] command: return the first element of a list stored in a variable, removing it from the list and updating the variable (surely this would be faster in C?) proc lshift varName { upvar 1 $varName L set res [lindex $L 0] set L [lrange $L 1 end] set res } ;# RS who likes to roll his own ;-) Alternatively, using [K]: proc K {x y} {set x} proc lshift varName {upvar 1 $varName L; K [lindex $L 0] [set L [lrange $L 1 end]]}DKF: 8.5 has lassign which makes this sort of thing trivial: set list [lassign $list aVar]UK you have [lvarpop] from TclXBR - finally: The finally part of try/catch/finally. Manually writing correct code fo
by: andreas_kupries, hobbs, libes Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Support Requests Patches Bugs Feature Requests Win32 issues Discussion Code Create Ticket View Stats Group Searches Changes Closed Tickets Open Tickets Help Formatting Help #31 broken pipe with more introduced in expect-5.43, 5.41 works. Status: open Owner: Andreas Kupries Labels: None Priority: 5 Updated: 2005-09-20 Created: 2005-09-01 Creator: Claudio Fontana Private: No Hello, there seems to be a bug introduced in expect-5.43, where standard output can not be piped to more anymore. Here is my test and the answer on my system http://wiki.tcl.tk/966 (GNU/Linux Slackware 10.1, customized, Kernel 2.6.12 on Intel P4): --------test.tcl-------- set biglist [list somestring somethingelse] for { set i 0 } { $i < 50 } { incr i } { lappend biglist more_stuff } foreach element $biglist { puts $element } ------------------------- # now use expect 5.41 as interpreter and pipe output through more $ /usr/bin/expect expect1.1> exp_version 5.41.0 expect1.2> exit $ /usr/bin/expect https://sourceforge.net/p/expect/bugs/31/ test.tcl | more somestring somethingelse more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff --More-- ... # now test using expect-5.43 as interpreter and pipe through more $ /home/claudio/usr/bin/expect expect1.1> exp_version 5.43.0 expect1.2> exit $ /home/claudio/usr/bin/expect test.tcl | more ... more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff more_stuff error writing "stdout": broken pipe while executing "puts $element" ("foreach" body line 2) invoked from within "foreach element $biglist { puts $element }" (file "test.tcl" line 7) ---------------------------------------------------- This error does not always happen, sometimes I get five or more clean runs before getting the broken pipe. Repeated runs with expect-5.41 never show the error. Discussion Claudio Fontana - 2005-09-05 Logged In: YES user_id=790036 ERRATA: add "package require Expect" at the beginning of the script to obtain the error described. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Jeffrey Hobbs - 2005-09-05 priority: 5 --> 7 assigned_to: nobody --> andreas_kupries If you would like to refer to this comm
Perl Lists Python Lists PHP Lists Ruby Lists Tcl Lists ActiveState Lists Lists » tcl-core [TCLCORE] tcl I/O bug trying to pipe output to more (unexpected broken pipe) From: http://code.activestate.com/lists/tcl-core/3025/ Claudio Fontana