sam appleton <
sam.s.a...@gmail.com> wrote:
> On Dec 5, 1:31 pm, Christian Gollwitzer <
aurio...@gmx.de> wrote:
>> You need to access this "puts". It may not be Tcl, it may be C - it
>> depends on your non-standard shell, therefore nobody can tell you where
>> this "puts" is buried.
> My own quoting was incorrect. Our output is exactly the same as tclsh.
> My shell is not writing the output. TCL is. Our output response to the
> same command is exactly the same as TCLSH.
I may have missed a statement about platform.
If platform is anything unixoid, then there's probably available
a tool named "script" which can capture all the ouput (and echoed
input) as a wrapper to tclsh or your shell.
e.g. (for tclsh)
script -a -q -c tclsh logfile
This line can be wrapped into a sh-script, named as your shell was
previously (before renaming it to something with a -core postfix,
which is then passed to the "-c" option). There is some caveat with
passing arguments to the shell, though, which is non-trivial.
Maybe this approach is simpler than modifying the shell.