[LUGSB] Something amusing...

cbwright cbwright at ic.sunysb.edu
Sat Sep 10 12:38:37 EDT 2005


Interesting. Sparky uses a csh script for which.

I believe that modifying the PATH variable is unnecessary on Sparky,
because bash is already in the path. This also means that you don't have
to rehash.

Thank you, and take care.
-Chris Wright

----- Original Message Follows -----
> 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.
> _______________________________________________
> lugsb mailing list
> lugsb at mail.fsl.cs.sunysb.edu
> http://www.fsl.cs.sunysb.edu/mailman/listinfo/lugsb



More information about the lugsb mailing list