You are here: Foswiki>Computing Web>MacOSX>MacOSXLoginScripts (revision 3)EditAttach

What is run when BASH starts

See the Invocation section of man bash for a description of BASH's behaviour (attached below).

Bash may be started in 3 ways:

1 Interactive Login
2 Interactive Non-login
3 Non-interactive Non-login

Interactive is whenever you start BASH to get to a command prompt.

Login sessions are invoked by

Non-interactive is when you run a bash script, with this invocation, the bashrc and profile login scripts are not rerun (there is a way to get an initialization script run in this instance, but that is a specialized use that I've never seen used...).

-- TomRockwell - 01 Jun 2007
Topic attachments
I Attachment Action Size Date Who Comment
bash-invocation.txttxt bash-invocation.txt manage 4.6 K 01 Jun 2007 - 20:56 TomRockwell Section of BASH man page
Edit | Attach | Print version | History: r8 | r4 < r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r3 - 01 Jun 2007, TomRockwell

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback