[11006] in Athena Bugs
decmips 7.6F: session_gate
daemon@ATHENA.MIT.EDU (bert@MIT.EDU)
Wed Sep 15 23:23:05 1993
From: bert@MIT.EDU
To: bugs@MIT.EDU
Date: Wed, 15 Sep 93 23:22:52 EDT
System name: hodge
Type and version: KN01 7.6F (1 update(s) to same version)
Display type: PMAX-MFB
What were you trying to do?
Write a Bourne shell .logout script.
What's wrong:
"session_gate -logout" runs /bin/athena/tcsh on the file .logout
What should have happened:
It should honor the "#!<shellname>".
Ideally, it would do the following:
- check if .logout exists
- if it starts with "#!" and is executable, just run it as is
- if not, get user's default shell (/etc/passwd is probably more
reasonable place to look than Hesiod) and run it on the file.
Please describe any relevant documentation references:
This is not really a bug, since the manpage says this is what
is supposed to happen. But it's a misfeature.
mar told me to send this in. =)