[LUGSB] Something amusing...

Erez Zadok ezk at cs.sunysb.edu
Fri Sep 9 23:11:15 EDT 2005


If csh is your official login shell, but you want to use bash, then your
~/.login should be:

##############################################################################
setenv PATH $HOME/where/I/installed/my/bash/dir:$PATH
rehash
exec bash -login -rcfile ~/.bashrc
##############################################################################

If you simply tried to invoke bash inside .login, it'd would have forked a
new plain shell instead of treating it as a login shell.

Note also that "which" is sometimes a program and sometimes it's a shell
script; sometimes it's a builtin of the shell.  In bash, run "\type which"
to see what bash thinks it is.  This could have been the reason for some of
the odd behavior you saw with "which".

Erez.



More information about the lugsb mailing list