[indiana-discuss] BASH login shell script

Shawn Walker swalker at opensolaris.org
Wed Dec 31 12:21:21 PST 2008


Brandon Barker wrote:
> I've spent some time searching online and reading docs, but nothing I've done has worked ... which system wide shell script is read by a bash login instance - whether it is through GNOME Terminal, ssh, or anything else?  For instance, one of the things I've tried is /etc/profile, but this does not work.  
> 
> Are which config scripts that are sourced by bash controlled as compile time options or are they hardcoded in the source?

If bash isn't run as a login shell, I believe /etc/inputrc is the only 
global file it will check.

See "man bash"; /etc/profile, etc. is read at startup, but only if bash 
is run as a login shell.

Also read the "INVOCATION" section for further behavioural notes.

-- 
Shawn Walker



More information about the indiana-discuss mailing list