[Openocd-development] tcl echo and puts question

2010-05-10 Thread Spencer Oliver
Hi, Just a query regarding the behaviour of puts and echo and stdout. When using the telnet/gdb interfaces all is as expected. If i use the following the string is output to stdout as expected. echo "Hello World" in this case the linefeed is appended before the string is output. However if i us

Re: [Openocd-development] tcl echo and puts question

2010-05-10 Thread Duane Ellis
Spencer Oliver wrote: {about puts) For "puts" the model is this: http://www.tcl.tk/man/tcl8.0/TclCmd/puts.htm For ECHO... I know nothing.. Øyvind is probably the tcl man to answer this question :) And I saw he's out for the week. -Duane. ___

Re: [Openocd-development] tcl echo and puts question

2010-05-11 Thread Øyvind Harboe
puts is a tcl command with tcl defined behavior. echo is an OpenOCD command with OpenOCD defined behavior. Probably there is a bit of history and cleanup to be done here, both in terms of behavior & definition. I would expect puts to work w/stdout and echo to work with the currently active channe