From: Spencer O. <sp...@sp...> - 2010-05-10 22:52:33
|
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 use: puts "Hello World" Nothing is shown on stdout as the linefeed is sent as a separate operation after the string is output. The underlying output function (log_puts) only outputs to stdout if terminated by a linefeed. As you would expect the following works: puts "Hello World\n" Is this by design, or a bug? Øyvind is probably the tcl man to answer this question :) Cheers Spen |