Hi,
context is 7.6 GENERIC.MP#2 arm64 and
shell is /usr/local/bin/tcsh
version tcsh 6.24.10 (Astron) 2023-04-14 (aarch64-arm-OpenBSD) options
wide,nls,dl,al,kan,sm,rh,color
I'd *like* to have ctrl-d log out my terminal session
(almost always this is over ssh).
In the man page for tcsh there's this:
ignoreeof
If set to the empty string or '0' and the input device is a
terminal, the end-of-file command (usually generated by the user
by typing ^D on an empty line) causes the shell to print
Use "exit" to leave tcsh.
instead of exiting. This prevents the shell from accidentally
being killed. Historically this setting exited after 26
successive EOF end-of-files and exits on the nth (+).
Placing "set ignoreeof = 1" in .tcshrc, logging out then back in then
inputting ctrl-d doesn't make the "use logout" message go away.
But then running 'source ~/.tcshrc' *does*, and it logs out as expected.
Basically, on initial login, 'set | grep ignoreeof' returns 'ignoreeof'
But then running 'source ~/.tcshrc' and then 'set | grep ignoreeof' returns
'ignoreeof 1'
All the other set variables like prompt colour work as expected, on login, in
.tcshrc
What am I doing wrong?
--