10 lines
263 B

chan configure stdout -buffering none
puts -nonewline stdout "1 hello on stdout with unix newline\n"
flush stdout
puts -nonewline stdout "2 hello on stdout with crlf newline\r\n"
flush stdout
puts -nonewline stdout "exiting with exitcode 0"
flush stdout
exit 0