[3150] in Athena Bugs

home help back first fref pref prev next nref lref last post

"setup" alias in /usr/athena/lib/init/cshrc

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Sat Sep 9 20:27:11 1989

Date: Sat, 9 Sep 89 20:26:50 -0400
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: lavin@ATHENA.MIT.EDU

#   aliases dealing with subjects
alias setup 'setenv SUBJECT \!*; xterm &'
if (-r $initdir/env_remove) then
    alias remove 'setenv SUBJECT \!*; set PID = $$; source $initdir/env_remove'
endif

The setup alias works only in an X environment; it is completely bogus
for dialup or network login use.  I would suggest having it set the
SUBJECT variable and source the script that this new xterm's shell is
supposed to; for consistency, it should perhaps do the same in an X
window.  Another alternative is to start a new shell (with the changed
prompt), and explain the difference between "exit" and "logout".

Is there any reason why PID has to be set?  The env_remove script
doesn't use it, nor does anything else in the standard init directory.
It isn't an environment variable, so it doesn't propagate to other
programs run, and anything you "source" can just use "$$".

home help back first fref pref prev next nref lref last post