On Thu, May 01, 2025 at 06:27:55PM +0100, void wrote:
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).
set ignoreeof = 1
should do that, IIRC that is the default. I do not
set ignoreeof and I can use ^d to exit. Did you check
~/.login, ~/.tcshrc, ~/.cshrc and other source files ?
<snip>
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.
If using a terminal emulator via X you may need something
like this in ~/.Xdefaults or ~/.Xresources
XTerm*LoginShell: true
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?