If I do exec tcsh, then I get a dead line, if I type something and
press ctrl-d I get the feedback from tcsh, so it seems to work 50%. I
wonder how to get that exec'ed tcsh to become interactive like a
normal tcsh.
--
Svenn
I see the same problem (Linux, Tcl 8.4.3). But is it really necessary
to start a
new tclsh? Couldn't you run a new interpreter instead? (Not sure
if that will work, though)
Regards,
Arjen
exec tcsh <@stdin >@stdout 2>@stderr
uwe
Yes indeed it does. I used a workaround by exec xterm since that would
spawn a new tcsh, but that was not quite what I wanted. Your solution
is better. Thanks.
The reason why I want to do this is to change some environment
variables like $HOME before I let the user start programs. That way I
can make sure that startup files and log files are read and written to
the correct directory which is not always the users own home
directory.
--
Svenn
Just being curious: why don't you (re-)set the environment before
starting the *first* tcsh?
env HOME=/somewhere FOOBAR=baz tcsh
?
R'
Sometimes it can be hard to compute the correct values of the
environment variables to start out with. Never worry about doing an
extra [exec]; after all, shells do it all day long!
Donal.