Pere Camps <[EMAIL PROTECTED]> writes: > Hi! > > In /etc/bashrc, do I put anything else than the 'aliases'? > > I've put all the rest in /etc/profile, but if I do a non-login > interactive shell, all the 'exports' don't load so all the rest. > > What exactly goes where? >
Depends on what you want to do. But, /etc/bashrc does not seem to be a valid filename serched for by bash. From the manual: When bash is invoked as an interactive login shell, it first reads and executes commands from the file /etc/pro file, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior. When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists. When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc. When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its value if it appears there, and uses the expanded value as the name of a file to read and execute. Bash behaves as if the following command were executed: if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi but the value of the PATH variable is not used to search for the file name. -- /*********************** Running Debian Linux *********************** * For God so loved the world that He gave his only begotten Son, * * that whoever believes in Him should not perish... John 3:16 * * W. Paul Mills * Topeka, Kansas, U.S.A. * * EMAIL= [EMAIL PROTECTED] * WWW= http://Mills-USA.com/ * * Bill, I was there several years ago, why would I want to go back? * ************* pgp public key on keyservers everywhere? *************/